Skip to content

Commit

Permalink
Fix libwaku due to changes of error return type of fetchPeerExchangeP…
Browse files Browse the repository at this point in the history
…eers
  • Loading branch information
NagyZoltanPeter committed Sep 13, 2024
1 parent 4da68d6 commit 4b99834
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ proc updateDiscv5BootstrapNodes(nodes: string, waku: ptr Waku): Result[void, str
proc performPeerExchangeRequestTo(
numPeers: uint64, waku: ptr Waku
): Future[Result[int, string]] {.async.} =
return await waku.node.fetchPeerExchangePeers(numPeers)
return (await waku.node.fetchPeerExchangePeers(numPeers)).isOkOr:
return err($error)

proc process*(
self: ptr DiscoveryRequest, waku: ptr Waku
Expand Down

0 comments on commit 4b99834

Please sign in to comment.