diff --git a/waku/v2/node/peer_manager/peer_manager.nim b/waku/v2/node/peer_manager/peer_manager.nim index 983bda61e3..f45d4bdc43 100644 --- a/waku/v2/node/peer_manager/peer_manager.nim +++ b/waku/v2/node/peer_manager/peer_manager.nim @@ -510,7 +510,7 @@ proc getNumStreams*(pm: PeerManager, protocol: string): (int, int) = proc connectToRelayPeers*(pm: PeerManager) {.async.} = let maxConnections = pm.switch.connManager.inSema.size - let (inRelayPeers, outRelayPeers) = pm.getNumStreams(WakuRelayCodec) + let (inRelayPeers, outRelayPeers) = pm.getNumConnections(WakuRelayCodec) let (inRelayStreams, outRelayStreams) = pm.getNumConnections(WakuRelayCodec) let totalRelayPeers = inRelayPeers + outRelayPeers