more docs

This commit is contained in:
Jaremy Creechley 2023-09-05 13:48:26 -07:00
parent 59de213ac8
commit 35d8f76649
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 6 additions and 3 deletions

View File

@ -78,6 +78,10 @@ proc init*(
type
## These type are equivalent thread-safe types
## for copying / sharing query data between threads.
##
QueryBuffer* = object
key*: KeyBuffer # Key to be queried
value*: bool # Flag to indicate if data should be returned
@ -143,5 +147,6 @@ proc convert*(
if ret[].results.isOk():
result.ok(ret[].results.get().toQueryResponse())
else:
let exc: ref CatchableError = ret[].results.error().toCatchable()
let exc: ref CatchableError =
ret[].results.error().toCatchable()
result.err(exc)

View File

@ -88,8 +88,6 @@ proc convert*[T, S](ret: TResult[T],
result.ok(ret[].results.get().toString())
elif S is void:
result.ok()
# elif S is QueryResponse:
# result.ok(ret[].results.get().toQueryResponse())
else:
result.ok(ret[].results.get())
else: