Skip to content

Commit

Permalink
draft, print number in/out connections
Browse files Browse the repository at this point in the history
  • Loading branch information
alrevuelta committed Mar 29, 2023
1 parent cbc247d commit 2fee3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/nim-libp2p
2 changes: 1 addition & 1 deletion waku/v2/node/peer_manager/peer_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ proc connectToNodes*(pm: PeerManager,
# getNumConnections(In, protoA) = 1 and getNumConnections(In, protoB)
proc getNumConnections*(pm: PeerManager, dir: Direction, protocol: string): int =
var numConns = 0
for peerId, muxers in pm.switch.connManager.muxed.pairs():
for peerId, muxers in pm.switch.connManager.getConnections():
for peerConn in muxers:
# TODO: Remove logs
info "conn", peerId=peerId, protocol=peerConn.connection.protocol, objName=peerConn.connection.objName, dir=peerConn.connection.dir, oid=peerConn.connection.oid, transportDir=peerConn.connection.transportDir
Expand Down

0 comments on commit 2fee3fc

Please sign in to comment.