mirror of https://github.com/waku-org/nwaku.git
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)
|
||||
if timedOut:
|
||||
error "Timedout after", timeout = conf.timeout
|
||||
return 1
|
||||
|
||||
let lp2pPeerStore = node.switch.peerStore
|
||||
let conStatus = node.peerManager.peerStore[ConnectionBook][peer.peerId]
|
||||
|
|
Loading…
Reference in New Issue