mirror of https://github.com/status-im/nim-eth.git
Remove async_utils/traceAsyncErrors usage from discv5 (#541)
This commit is contained in:
parent
ba69c1ff29
commit
4c821c5eae
|
@ -8,8 +8,8 @@ The implemented specification is Protocol version v5.1.
|
|||
This implementation does not support "Topic Advertisement" yet as this part of
|
||||
the specification is not complete.
|
||||
|
||||
The implementation relies on other modules in the `eth` package, namely: `keys`,
|
||||
`rlp` and `async_utils`.
|
||||
The implementation depends on other modules in the `eth` package, namely: `keys`
|
||||
and `rlp`.
|
||||
|
||||
## How to use
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ import
|
|||
std/[tables, sets, options, math, sequtils, algorithm],
|
||||
stew/shims/net as stewNet, json_serialization/std/net,
|
||||
stew/[endians2, results], chronicles, chronos, stint, metrics,
|
||||
".."/../[rlp, keys, async_utils],
|
||||
".."/../[rlp, keys],
|
||||
"."/[messages, encoding, node, routing_table, enr, random2, sessions, ip_vote,
|
||||
nodes_verification]
|
||||
|
||||
|
@ -836,7 +836,7 @@ proc revalidateLoop(d: Protocol) {.async.} =
|
|||
await sleepAsync(milliseconds(d.rng[].rand(revalidateMax)))
|
||||
let n = d.routingTable.nodeToRevalidate()
|
||||
if not n.isNil:
|
||||
traceAsyncErrors d.revalidateNode(n)
|
||||
asyncSpawn d.revalidateNode(n)
|
||||
except CancelledError:
|
||||
trace "revalidateLoop canceled"
|
||||
|
||||
|
|
Loading…
Reference in New Issue