Skip to content

Commit

Permalink
docs: updated limits doc re: closing connections (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Dec 13, 2022
1 parent e0dc269 commit 793c59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/LIMITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const node = await createLibp2pNode({

## Closing connections

When choosing connections to close the connection manager sorts the list of connections by the value derived from the tags given to each peer. The values of all tags are summed and connections with lower valued peers are eligible for closing first.
When choosing connections to close the connection manager sorts the list of connections by the value derived from the tags given to each peer. The values of all tags are summed and connections with lower valued peers are eligible for closing first. If there are tags with equal values, the shortest-lived connection will be closed first.

```js
// tag a peer
Expand Down

0 comments on commit 793c59e

Please sign in to comment.