Skip to content

Commit

Permalink
chore: revise comment
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Aug 11, 2023
1 parent 416a791 commit 6c5a0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/network/libp2p/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function createNodeJsLibp2p(
maxConnections: networkOpts.maxPeers,
// socket option: the maximum length of the queue of pending connections
// https://nodejs.org/dist/latest-v18.x/docs/api/net.html#serverlisten
// this is 10% of our target peers
// it's not safe if we increase this number
backlog: 5,
closeServerOnMaxConnections: {
closeAbove: networkOpts.maxPeers ?? Infinity,
Expand Down

0 comments on commit 6c5a0f3

Please sign in to comment.