mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-05-22 01:29:56 +00:00
Remove clientMode checking in addProvider
This commit is contained in:
parent
558b2f4939
commit
0b3337ca09
@ -735,7 +735,7 @@ proc addProvider*(
|
||||
|
||||
var res = await d.lookup(cId)
|
||||
# TODO: lookup is specified as not returning local, even if that is the closest. Is this OK?
|
||||
if res.len == 0 and not d.clientMode:
|
||||
if res.len == 0:
|
||||
res.add(d.localNode)
|
||||
for toNode in res:
|
||||
if toNode != d.localNode:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user