We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fe822 commit c56f84cCopy full SHA for c56f84c
1 file changed
core/node/libp2p/rcmgr.go
@@ -77,21 +77,16 @@ filled in with autocomputed defaults.`)
77
ropts := []rcmgr.Option{
78
rcmgr.WithMetrics(createRcmgrMetrics()),
79
rcmgr.WithTraceReporter(str),
80
- rcmgr.WithLimitPeersPerCIDR(
81
- []rcmgr.ConnLimitPerCIDR{
+ rcmgr.WithLimitPerSubnet(
+ nil,
82
+ []rcmgr.ConnLimitPerSubnet{
83
{
- ConnCount: 16,
84
- BitMask: 32,
+ ConnCount: 16,
85
+ PrefixLength: 56,
86
},
- },
87
88
89
90
- BitMask: 56,
91
92
- {
93
- ConnCount: 8 * 16,
94
- BitMask: 48,
+ ConnCount: 8 * 16,
+ PrefixLength: 48,
95
96
}),
97
}
0 commit comments