move self check to discovery.find

This commit is contained in:
Dmitriy Ryajov 2023-11-23 12:34:16 -06:00 committed by gmega
parent 683f4b3016
commit ab8a97118d
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
1 changed files with 0 additions and 1 deletions

View File

@ -158,7 +158,6 @@ proc discoveryTaskLoop(b: DiscoveryEngine) {.async.} =
let
dialed = await allFinished(
peers
.filterIt( not b.network.isSelf(it.data.peerId) )
.mapIt( b.network.dialPeer(it.data) ))
for i, f in dialed: