mirror of https://github.com/status-im/nim-eth.git
Revert the useless async change for queryRandom (#432)
This commit is contained in:
parent
086162183c
commit
84f755d792
|
@ -718,9 +718,9 @@ proc query*(d: Protocol, target: NodeId, k = BUCKET_SIZE): Future[seq[Node]]
|
||||||
d.lastLookup = now(chronos.Moment)
|
d.lastLookup = now(chronos.Moment)
|
||||||
return queryBuffer
|
return queryBuffer
|
||||||
|
|
||||||
proc queryRandom*(d: Protocol): Future[seq[Node]] {.async.} =
|
proc queryRandom*(d: Protocol): Future[seq[Node]] =
|
||||||
## Perform a query for a random target, return all nodes discovered.
|
## Perform a query for a random target, return all nodes discovered.
|
||||||
return await d.query(NodeId.random(d.rng[]))
|
d.query(NodeId.random(d.rng[]))
|
||||||
|
|
||||||
proc queryRandom*(d: Protocol, enrField: (string, seq[byte])):
|
proc queryRandom*(d: Protocol, enrField: (string, seq[byte])):
|
||||||
Future[seq[Node]] {.async.} =
|
Future[seq[Node]] {.async.} =
|
||||||
|
|
Loading…
Reference in New Issue