Remove async_utils/traceAsyncErrors usage from discv5 (#541)

This commit is contained in:
Kim De Mey 2022-10-07 17:20:03 +02:00 committed by GitHub
parent ba69c1ff29
commit 4c821c5eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"