From f0504f699b47a920e1991c5c8c943b1232578dcc Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 14 May 2024 22:27:07 +0200 Subject: [PATCH] p2p/discover: simplify nextTime --- p2p/discover/table_reval.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/p2p/discover/table_reval.go b/p2p/discover/table_reval.go index 43a7a5ef22..5213097b81 100644 --- a/p2p/discover/table_reval.go +++ b/p2p/discover/table_reval.go @@ -76,12 +76,6 @@ func (tr *tableRevalidation) run(tab *Table, now mclock.AbsTime) (nextTime mcloc tr.slow.schedule(now, &tab.rand) } - if tr.fast.nextTime == never { - return tr.slow.nextTime - } - if tr.slow.nextTime == never { - return tr.fast.nextTime - } return min(tr.fast.nextTime, tr.slow.nextTime) }