This commit is contained in:
Jaremy Creechley 2023-09-21 00:04:05 -07:00
parent 25bb865e20
commit b224c1ce3e
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -20,7 +20,6 @@ type
ThreadTypes* = void | bool | SomeInteger | DataBuffer | tuple | Atomic
ThreadResErr* = (ErrorEnum, DataBuffer)
# ThreadQueryRes* = tuple[key: KeyId, val: DataBuffer]
ThreadResult*[T: ThreadTypes] = Result[T, ThreadResErr]
@ -37,9 +36,3 @@ converter toExc*(e: ThreadResErr): ref CatchableError =
of ErrorEnum.QueryEndedErr: (ref QueryEndedError)(msg: $e[1])
of ErrorEnum.DatastoreErr: (ref DatastoreError)(msg: $e[1])
of ErrorEnum.CatchableErr: (ref CatchableError)(msg: $e[1])
# converter toQueryResponse*(r: DbQueryResponse): QueryResponse =
# if not r.key.data.isNil and r.key.data.len > 0 and key =? Key.init($r.key.data):
# (key.some, @(r.val))
# else:
# (Key.none, EmptyBytes)