Skip to content

Commit 2d872a1

Browse files
committed
ETCM-168: Enroll concurrently with all bootstraps.
1 parent 97a55c7 commit 2d872a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalanet/discovery/src/io/iohk/scalanet/discovery/ethereum/v4/DiscoveryService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ object DiscoveryService {
815815
val tryEnroll = for {
816816
nodeId <- stateRef.get.map(_.node.id)
817817
bootstrapPeers = config.knownPeers.toList.map(toPeer).filterNot(_.id == nodeId)
818-
maybeBootstrapEnrs <- bootstrapPeers.traverse(fetchEnr(_, delay = true))
818+
maybeBootstrapEnrs <- Task.parTraverseN(config.kademliaAlpha)(bootstrapPeers)(fetchEnr(_, delay = true))
819819
result <- if (maybeBootstrapEnrs.exists(_.isDefined)) {
820820
lookup(nodeId).as(true)
821821
} else {

0 commit comments

Comments
 (0)