mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
fix(wakucanary): add missing return on timeout (#1901)
This commit is contained in:
parent
b9d5d28af5
commit
7dce0b9e94
@ -178,6 +178,7 @@ proc main(rng: ref HmacDrbgContext): Future[int] {.async.} =
|
|||||||
let timedOut = not await node.connectToNodes(@[peer]).withTimeout(conf.timeout)
|
let timedOut = not await node.connectToNodes(@[peer]).withTimeout(conf.timeout)
|
||||||
if timedOut:
|
if timedOut:
|
||||||
error "Timedout after", timeout = conf.timeout
|
error "Timedout after", timeout = conf.timeout
|
||||||
|
return 1
|
||||||
|
|
||||||
let lp2pPeerStore = node.switch.peerStore
|
let lp2pPeerStore = node.switch.peerStore
|
||||||
let conStatus = node.peerManager.peerStore[ConnectionBook][peer.peerId]
|
let conStatus = node.peerManager.peerStore[ConnectionBook][peer.peerId]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user