mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 00:43:06 +00:00
fix: changing libwaku's error handling format (#3093)
This commit is contained in:
parent
488ea2f815
commit
5e3f79896a
@ -52,9 +52,9 @@ template foreignThreadGc(body: untyped) =
|
|||||||
when declared(tearDownForeignThreadGc):
|
when declared(tearDownForeignThreadGc):
|
||||||
tearDownForeignThreadGc()
|
tearDownForeignThreadGc()
|
||||||
|
|
||||||
template handleRes[T: string | void](
|
proc handleRes[T: string | void](
|
||||||
res: Result[T, string], callback: WakuCallBack, userData: pointer
|
res: Result[T, string], callback: WakuCallBack, userData: pointer
|
||||||
) =
|
): cint =
|
||||||
## Handles the Result responses, which can either be Result[string, string] or
|
## 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
|
## 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.
|
## just return RET_OK and not provide any additional feedback through the callback.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user