From ed5a069bf9f96013cee7214fa2832cb11541cfcd Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Tue, 19 May 2026 20:00:00 +0800 Subject: [PATCH] p2p/discover: fix waitting wrong duration --- 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: