Skip to content

Commit

Permalink
feat: change go routine limit to peers size on do conn
Browse files Browse the repository at this point in the history
  • Loading branch information
cody committed May 28, 2024
1 parent 1ea44e6 commit 8464df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func doConcurrentConn(ctx context.Context, host host.Host, peers map[peer.ID]boo
}

g := errgroup.Group{}
g.SetLimit(maxNLastConn)
g.SetLimit(len(peers))

connected := int32(0)

Expand Down

0 comments on commit 8464df0

Please sign in to comment.