p2p/discover: simplify nextTime

This commit is contained in:
Felix Lange 2024-05-14 22:27:07 +02:00
parent f96f5965e6
commit f0504f699b

View file

@ -76,12 +76,6 @@ func (tr *tableRevalidation) run(tab *Table, now mclock.AbsTime) (nextTime mcloc
tr.slow.schedule(now, &tab.rand) 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) return min(tr.fast.nextTime, tr.slow.nextTime)
} }