p2p/discover: fix waitting wrong duration

This commit is contained in:
Weixie Cui 2026-05-19 20:00:00 +08:00
parent d4027f3d46
commit ed5a069bf9

View file

@ -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: