From 2e6c299d36fef3356c945f6c17487a666a5e59f7 Mon Sep 17 00:00:00 2001 From: gabrielmer <101006718+gabrielmer@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:12:45 +0300 Subject: [PATCH] fix: changing libwaku's error handling format (#3093) --- library/libwaku.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/libwaku.nim b/library/libwaku.nim index e2a7909bef..f9e2a0b3a0 100644 --- a/library/libwaku.nim +++ b/library/libwaku.nim @@ -52,9 +52,9 @@ template foreignThreadGc(body: untyped) = when declared(tearDownForeignThreadGc): tearDownForeignThreadGc() -template handleRes[T: string | void]( +proc handleRes[T: string | void]( res: Result[T, string], callback: WakuCallBack, userData: pointer -) = +): cint = ## Handles the Result responses, which can either be Result[string, string] or ## Result[void, string]. Notice that in case of Result[void, string], it is enough to ## just return RET_OK and not provide any additional feedback through the callback.