mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-07 16:13:07 +00:00
test query
This commit is contained in:
parent
4e63ca48f0
commit
d411b56175
@ -276,16 +276,15 @@ proc queryTask[DB](
|
||||
echo "\tqueryTask:query:iter:wait! "
|
||||
discard nextSignal.waitSync().get()
|
||||
|
||||
echo "\tqueryTask:query:iter:wait:done "
|
||||
if ctx[].cancelled:
|
||||
echo "\tqueryTask:query:iter:cancelled"
|
||||
# cancel iter, then run next cycle so it'll finish and close
|
||||
handle.cancel = true
|
||||
continue
|
||||
else:
|
||||
echo "\tqueryTask:query:iter:result:"
|
||||
ctx[].res = item.mapErr() do(exc: ref CatchableError) -> ThreadResErr:
|
||||
exc
|
||||
echo "\tqueryTask:query:iter:result: ", ctx[].res
|
||||
echo "\tqueryTask:query:iter:fireSync "
|
||||
discard ctx[].signal.fireSync()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user