Skip to content

Commit c56f84c

Browse files
committed
Use new names
1 parent a7fe822 commit c56f84c

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

core/node/libp2p/rcmgr.go

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,16 @@ filled in with autocomputed defaults.`)
7777
ropts := []rcmgr.Option{
7878
rcmgr.WithMetrics(createRcmgrMetrics()),
7979
rcmgr.WithTraceReporter(str),
80-
rcmgr.WithLimitPeersPerCIDR(
81-
[]rcmgr.ConnLimitPerCIDR{
80+
rcmgr.WithLimitPerSubnet(
81+
nil,
82+
[]rcmgr.ConnLimitPerSubnet{
8283
{
83-
ConnCount: 16,
84-
BitMask: 32,
84+
ConnCount: 16,
85+
PrefixLength: 56,
8586
},
86-
},
87-
[]rcmgr.ConnLimitPerCIDR{
8887
{
89-
ConnCount: 16,
90-
BitMask: 56,
91-
},
92-
{
93-
ConnCount: 8 * 16,
94-
BitMask: 48,
88+
ConnCount: 8 * 16,
89+
PrefixLength: 48,
9590
},
9691
}),
9792
}

0 commit comments

Comments
 (0)