From 0d9118404e79cb374ae46fe62a70c2ec12e99598 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Mon, 4 Sep 2023 14:42:16 +0200 Subject: [PATCH] addValue: use fast lookup Signed-off-by: Csaba Kiraly --- libp2pdht/private/eth/p2p/discoveryv5/protocol.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index 69a1850..0fc1104 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -869,7 +869,7 @@ proc addValue*( cId: NodeId, 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 # TODO: lookup is specified as not returning local, even if that is the closest. Is this OK? if res.len == 0: