mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-23 03:09:59 +00:00
move self check to discovery.find
This commit is contained in:
parent
683f4b3016
commit
ab8a97118d
@ -158,7 +158,6 @@ proc discoveryTaskLoop(b: DiscoveryEngine) {.async.} =
|
|||||||
let
|
let
|
||||||
dialed = await allFinished(
|
dialed = await allFinished(
|
||||||
peers
|
peers
|
||||||
.filterIt( not b.network.isSelf(it.data.peerId) )
|
|
||||||
.mapIt( b.network.dialPeer(it.data) ))
|
.mapIt( b.network.dialPeer(it.data) ))
|
||||||
|
|
||||||
for i, f in dialed:
|
for i, f in dialed:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user