fix broken counter
This commit is contained in:
parent
909c12c6b4
commit
0ec247de8c
@ -54,7 +54,9 @@ func runMiner(t *TestEnvironment) error {
|
|||||||
|
|
||||||
ch := make(chan struct{})
|
ch := make(chan struct{})
|
||||||
err := miner.MineOne(ctx, func(mined bool) {
|
err := miner.MineOne(ctx, func(mined bool) {
|
||||||
t.D().Counter(fmt.Sprintf("block.mine,miner=%s", myActorAddr)).Inc(1)
|
if mined {
|
||||||
|
t.D().Counter(fmt.Sprintf("block.mine,miner=%s", myActorAddr)).Inc(1)
|
||||||
|
}
|
||||||
close(ch)
|
close(ch)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user