Skip to content

Commit

Permalink
fix(wakucanary): add missing return on timeout (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed Aug 11, 2023
1 parent b9d5d28 commit 7dce0b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/wakucanary/wakucanary.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7dce0b9

Please sign in to comment.