Skip to content

Commit

Permalink
pruning: improved a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Nov 19, 2021
1 parent b39493c commit 580207f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,9 @@ withConnectionManager ConnectionManagerArguments {

-- use 'numberOfConns + 1' because we want to know if we
-- actually let this connection evolve if we need to make
-- room for them by pruning.
-- room for them by pruning. This is because
-- 'countIncomingConnections' does not count 'OutboundDupState'
-- as an inbound connection, but does so for 'InboundIdleState'.
let numberToPrune =
numberOfConns + 1
- fromIntegral
Expand Down

0 comments on commit 580207f

Please sign in to comment.