mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-01-03 22:13:06 +00:00
log routing table size periodically
This commit is contained in:
parent
4375b92298
commit
f8523ae629
@ -938,6 +938,7 @@ proc revalidateLoop(d: Protocol) {.async.} =
|
||||
try:
|
||||
while true:
|
||||
await sleepAsync(milliseconds(d.rng[].rand(RevalidateMax)))
|
||||
echo d.localNode.address.get().port, ": ", d.nodesDiscovered()
|
||||
let n = d.routingTable.nodeToRevalidate()
|
||||
if not n.isNil:
|
||||
traceAsyncErrors d.revalidateNode(n)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user