From 4b99834544b0fbdbc0be619772af8597dfeda82d Mon Sep 17 00:00:00 2001 From: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com> Date: Fri, 13 Sep 2024 02:54:58 +0200 Subject: [PATCH] Fix libwaku due to changes of error return type of fetchPeerExchangePeers --- .../inter_thread_communication/requests/discovery_request.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/waku_thread/inter_thread_communication/requests/discovery_request.nim b/library/waku_thread/inter_thread_communication/requests/discovery_request.nim index 3cbf1de7c5..e23b9be26a 100644 --- a/library/waku_thread/inter_thread_communication/requests/discovery_request.nim +++ b/library/waku_thread/inter_thread_communication/requests/discovery_request.nim @@ -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