cmd/devp2p: tweak crawler log message

This commit is contained in:
Felix Lange 2019-10-29 13:35:00 +01:00
parent 86b9e47cb8
commit 49b49fc23e

View file

@ -73,10 +73,6 @@ loop:
case n := <-c.ch: case n := <-c.ch:
c.updateNode(n) c.updateNode(n)
case it := <-doneCh: case it := <-doneCh:
liveIters--
if liveIters == 0 {
break loop
}
if it == c.inputIter { if it == c.inputIter {
// Enable timeout when we're done revalidating the input nodes. // Enable timeout when we're done revalidating the input nodes.
log.Info("Revalidation of input set is done", "len", len(c.input)) log.Info("Revalidation of input set is done", "len", len(c.input))
@ -84,6 +80,9 @@ loop:
timeoutCh = timeoutTimer.C timeoutCh = timeoutTimer.C
} }
} }
if liveIters--; liveIters == 0 {
break loop
}
case <-timeoutCh: case <-timeoutCh:
break loop break loop
} }