fix(wakucanary): add missing return on timeout (#1901)

This commit is contained in:
Vaclav Pavlin 2023-08-11 10:00:19 +02:00 committed by GitHub
parent 5e2e1b6bd0
commit 23852c4938

View File

@ -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]