Skip to content

Commit 2e6c299

Browse files
authored
fix: changing libwaku's error handling format (#3093)
1 parent 4aabd64 commit 2e6c299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/libwaku.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ template foreignThreadGc(body: untyped) =
5252
when declared(tearDownForeignThreadGc):
5353
tearDownForeignThreadGc()
5454

55-
template handleRes[T: string | void](
55+
proc handleRes[T: string | void](
5656
res: Result[T, string], callback: WakuCallBack, userData: pointer
57-
) =
57+
): cint =
5858
## Handles the Result responses, which can either be Result[string, string] or
5959
## Result[void, string]. Notice that in case of Result[void, string], it is enough to
6060
## just return RET_OK and not provide any additional feedback through the callback.

0 commit comments

Comments
 (0)