Skip to content

Commit

Permalink
Use new names
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo authored and lidel committed Jun 14, 2024
1 parent 34ddc0d commit 2c17574
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions core/node/libp2p/rcmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,16 @@ filled in with autocomputed defaults.`)
ropts := []rcmgr.Option{
rcmgr.WithMetrics(createRcmgrMetrics()),
rcmgr.WithTraceReporter(str),
rcmgr.WithLimitPeersPerCIDR(
[]rcmgr.ConnLimitPerCIDR{
rcmgr.WithLimitPerSubnet(
nil,
[]rcmgr.ConnLimitPerSubnet{
{
ConnCount: 16,
BitMask: 32,
ConnCount: 16,
PrefixLength: 56,
},
},
[]rcmgr.ConnLimitPerCIDR{
{
ConnCount: 16,
BitMask: 56,
},
{
ConnCount: 8 * 16,
BitMask: 48,
ConnCount: 8 * 16,
PrefixLength: 48,
},
}),
}
Expand Down

0 comments on commit 2c17574

Please sign in to comment.