Closed diegomrsantos closed 3 months ago
@arnetheduck how about replacing https://github.com/vacp2p/nim-libp2p/pull/1077/files#diff-abbf987f19a24c9940cd01bde79a1b1e0819f1c3b6d7ba2efa04ad680d022c78R182-R186 by unsubscribePeer
?
@arnetheduck how about replacing https://github.com/vacp2p/nim-libp2p/pull/1077/files#diff-abbf987f19a24c9940cd01bde79a1b1e0819f1c3b6d7ba2efa04ad680d022c78R182-R186 by unsubscribePeer?
let's start with peer disconnection (to maintain current behavior) - when we reach a stable point with that working, we can consider other strategies (so that we can get a release out).
Attention: Patch coverage is 71.42857%
with 10 lines
in your changes are missing coverage. Please review.
Project coverage is 84.79%. Comparing base (
458b088
) to head (067b0f5
).
This PR adds a default limit to the number of elements in the non-priority queue. When this limit has been reached, the peer will be disconnected. The default value is
1024
but can also be configured through a new GossipSub parammaxNumElementsInNonPriorityQueue
.