mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 03:25:04 +00:00
chore: closing ping streams (#2692)
This commit is contained in:
parent
8451cf8e1b
commit
7d4857ea6c
@ -1136,6 +1136,7 @@ proc keepaliveLoop(node: WakuNode, keepalive: chronos.Duration) {.async.} =
|
||||
try:
|
||||
let conn = await node.switch.dial(peer.peerId, peer.addrs, PingCodec)
|
||||
let pingDelay = await node.libp2pPing.ping(conn)
|
||||
await conn.close()
|
||||
except CatchableError as exc:
|
||||
waku_node_errors.inc(labelValues = ["keep_alive_failure"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user