mirror of https://github.com/waku-org/nwaku.git
fix: changing libwaku's error handling format (#3093)
This commit is contained in:
parent
4aabd64b40
commit
2e6c299d36
|
@ -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…
Reference in New Issue