mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: simplify nextTime
This commit is contained in:
parent
f96f5965e6
commit
f0504f699b
1 changed files with 0 additions and 6 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue