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…
Reference in New Issue