diff --git a/core/node/libp2p/rcmgr.go b/core/node/libp2p/rcmgr.go index 65b97a8d4f2..c11c7262c7d 100644 --- a/core/node/libp2p/rcmgr.go +++ b/core/node/libp2p/rcmgr.go @@ -319,11 +319,11 @@ func mergeResourceLimitsAndScopeStatToResourceLimitsAndUsage(rl rcmgr.ResourceLi ConnsInbound: rl.ConnsInbound, ConnsInboundUsage: ss.NumConnsInbound, Streams: rl.Streams, - StreamsUsage: ss.NumStreamsOutbound + ss.NumConnsInbound, + StreamsUsage: ss.NumStreamsOutbound + ss.NumStreamsInbound, StreamsOutbound: rl.StreamsOutbound, - StreamsOutboundUsage: ss.NumConnsOutbound, + StreamsOutboundUsage: ss.NumStreamsOutbound, StreamsInbound: rl.StreamsInbound, - StreamsInboundUsage: ss.NumConnsInbound, + StreamsInboundUsage: ss.NumStreamsInbound, } }