Skip to content

Commit

Permalink
deleting logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed May 10, 2024
1 parent 7a6ad69 commit ad9b67a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions waku/node/waku_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1128,15 +1128,10 @@ proc keepaliveLoop(node: WakuNode, keepalive: chronos.Duration) {.async.} =
# Keep all connected peers alive while running
trace "Running keepalive"

echo "------------------ Entering keepalive -----------"
echo "----------- ping connections: (in, out): ",
node.peerManager.getNumStreams(PingCodec)

# First get a list of connected peer infos
let peers =
node.peerManager.peerStore.peers().filterIt(it.connectedness == Connected)

echo "----------- physical connections before: ",
node.peerManager.connectedPeers(PingCodec)
for peer in peers:
try:
Expand All @@ -1146,8 +1141,6 @@ proc keepaliveLoop(node: WakuNode, keepalive: chronos.Duration) {.async.} =
except CatchableError as exc:
waku_node_errors.inc(labelValues = ["keep_alive_failure"])

echo "----------- physical connections after: ",
node.peerManager.connectedPeers(PingCodec)
await sleepAsync(keepalive)

proc startKeepalive*(node: WakuNode) =
Expand Down

0 comments on commit ad9b67a

Please sign in to comment.