Skip to content

Commit 372533b

Browse files
committed
++
1 parent 8e0b29c commit 372533b

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

cmd/migration-checker/main.go

+1-15
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func main() {
3636
zkRoot = flag.String("zk-root", "", "root hash of the ZK node")
3737
paranoid = flag.Bool("paranoid", false, "verifies all node contents against their expected hash")
3838
parallelismMultipler = flag.Int("parallelism-multiplier", 4, "multiplier for the number of parallel workers")
39-
startFrom = flag.Int("start-form", 0, "start checking from account at the given index")
39+
startFrom = flag.Int("start-from", 0, "start checking from account at the given index")
4040
)
4141
flag.Parse()
4242

@@ -54,20 +54,6 @@ func main() {
5454
trieCheckers <- struct{}{}
5555
}
5656

57-
done := make(chan struct{})
58-
totalCheckers := len(trieCheckers)
59-
go func() {
60-
for {
61-
select {
62-
case <-done:
63-
return
64-
case <-time.After(time.Minute):
65-
fmt.Println("Active checkers:", totalCheckers-len(trieCheckers))
66-
}
67-
}
68-
}()
69-
defer close(done)
70-
7157
startFromSafe := *startFrom - len(trieCheckers)
7258
if startFromSafe < 0 {
7359
startFromSafe = 0

0 commit comments

Comments
 (0)