fix: changing libwaku's error handling format (#3093)

This commit is contained in:
gabrielmer 2024-10-09 15:12:45 +03:00 committed by GitHub
parent 4aabd64b40
commit 2e6c299d36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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.