mirror of
https://github.com/status-im/nim-libp2p-dht.git
synced 2025-02-24 01:58:28 +00:00
don't touch the cache when checking for id
This commit is contained in:
parent
23e20a2f1c
commit
f84bc647ce
@ -337,7 +337,7 @@ proc addProviderLocal(p: Protocol, cId: NodeId, prov: SignedPeerRecord) =
|
|||||||
trace "adding provider to local db", n=p.localNode, cId, prov
|
trace "adding provider to local db", n=p.localNode, cId, prov
|
||||||
|
|
||||||
var providers =
|
var providers =
|
||||||
if p.providers.get(cId).isNone:
|
if cId notin p.providers:
|
||||||
ProvidersCache.init(MaxProvidersPerEntry)
|
ProvidersCache.init(MaxProvidersPerEntry)
|
||||||
else:
|
else:
|
||||||
p.providers.get(cId).get()
|
p.providers.get(cId).get()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user