change revalidateLoop to use [RevalidateMax/2, RevalidateMax]
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
ab7edc0247
commit
7956898882
|
@ -937,7 +937,7 @@ proc revalidateLoop(d: Protocol) {.async.} =
|
|||
## message.
|
||||
try:
|
||||
while true:
|
||||
await sleepAsync(milliseconds(d.rng[].rand(RevalidateMax)))
|
||||
await sleepAsync(milliseconds(RevalidateMax div 2 + d.rng[].rand(RevalidateMax div 2)))
|
||||
echo d.localNode.address.get().port, ": ", d.nodesDiscovered()
|
||||
let n = d.routingTable.nodeToRevalidate()
|
||||
if not n.isNil:
|
||||
|
|
Loading…
Reference in New Issue