From e5ff3596dbe792297edd5bf4e295ffbcd13307b3 Mon Sep 17 00:00:00 2001 From: cui Date: Sun, 21 Jun 2026 07:15:26 +0800 Subject: [PATCH] p2p/discover: fix waiting wrong duration (#35002) The timer should wait the remaining time, not the elapsed time. --- p2p/discover/lookup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/discover/lookup.go b/p2p/discover/lookup.go index 416256fb36..c719333235 100644 --- a/p2p/discover/lookup.go +++ b/p2p/discover/lookup.go @@ -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: