mirror of
https://github.com/status-im/nim-libp2p-dht.git
synced 2025-02-23 17:48:21 +00:00
addValue: use fast lookup
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
f60744e52e
commit
cd7beb5ff3
@ -861,7 +861,7 @@ proc addValue*(
|
|||||||
cId: NodeId,
|
cId: NodeId,
|
||||||
value: seq[byte]): Future[seq[Node]] {.async.} =
|
value: seq[byte]): Future[seq[Node]] {.async.} =
|
||||||
|
|
||||||
var res = await d.lookup(cId)
|
var res = await d.lookup(cId, fast=true)
|
||||||
trace "lookup returned:", res
|
trace "lookup returned:", res
|
||||||
# TODO: lookup is specified as not returning local, even if that is the closest. Is this OK?
|
# TODO: lookup is specified as not returning local, even if that is the closest. Is this OK?
|
||||||
if res.len == 0:
|
if res.len == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user