mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
p2p/discover: fix waitting wrong duration
This commit is contained in:
parent
d4027f3d46
commit
ed5a069bf9
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ func (it *lookupIterator) slowdown() {
|
|||
if diff > minInterval {
|
||||
return
|
||||
}
|
||||
wait := time.NewTimer(diff)
|
||||
wait := time.NewTimer(minInterval - diff)
|
||||
defer wait.Stop()
|
||||
select {
|
||||
case <-wait.C:
|
||||
|
|
|
|||
Loading…
Reference in a new issue