mirror of
https://github.com/status-im/nim-libp2p-dht.git
synced 2025-02-23 01:28:09 +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
|
||||
|
||||
var providers =
|
||||
if p.providers.get(cId).isNone:
|
||||
if cId notin p.providers:
|
||||
ProvidersCache.init(MaxProvidersPerEntry)
|
||||
else:
|
||||
p.providers.get(cId).get()
|
||||
|
Loading…
x
Reference in New Issue
Block a user