Skip to content

Commit

Permalink
fix: no limits
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Mar 3, 2023
1 parent 05fb386 commit bf876ec
Showing 1 changed file with 62 additions and 3 deletions.
65 changes: 62 additions & 3 deletions resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,68 @@ func NewResourceManager() (network.ResourceManager, error) {

cfg := rcmgr.PartialLimitConfig{
System: rcmgr.ResourceLimits{
ConnsOutbound: rcmgr.Unlimited,
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
Transient: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
ServiceDefault: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
ServicePeerDefault: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
ProtocolDefault: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
ProtocolPeerDefault: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
Conn: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
Stream: rcmgr.ResourceLimits{
Conns: rcmgr.Unlimited,
ConnsInbound: rcmgr.Unlimited,
ConnsOutbound: rcmgr.Unlimited,
Streams: rcmgr.Unlimited,
StreamsInbound: rcmgr.Unlimited,
StreamsOutbound: rcmgr.Unlimited,
},
}

Expand Down

0 comments on commit bf876ec

Please sign in to comment.