Skip to content

Commit

Permalink
fix: streams was used instead of connections
Browse files Browse the repository at this point in the history
  • Loading branch information
alrevuelta committed May 10, 2023
1 parent 44c5431 commit 8012656
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions waku/v2/node/peer_manager/peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +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 (inRelayStreams, outRelayStreams) = pm.getNumConnections(WakuRelayCodec)
let (inRelayPeers, outRelayPeers) = pm.getNumConnections(WakuRelayCodec)
let totalRelayPeers = inRelayPeers + outRelayPeers

# Leave some room for service peers
Expand Down

0 comments on commit 8012656

Please sign in to comment.