mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-07 16:13:07 +00:00
setup query
This commit is contained in:
parent
5796d4dfa1
commit
abfd12f7a6
@ -299,10 +299,10 @@ method query*(
|
||||
# trigger query task to iterate then wait for new result!
|
||||
discard ctx[].signal.fireSync()
|
||||
|
||||
if ctx[].res.isErr() and ctx[].res.error()[0] == ErrorEnum.QueryEndedErr:
|
||||
if not ctx[].running:
|
||||
iter.finished = true
|
||||
return success (key: Key.none, data: EmptyBytes)
|
||||
elif ctx[].res.isErr():
|
||||
|
||||
if ctx[].res.isErr():
|
||||
return err(ctx[].res.error())
|
||||
else:
|
||||
let qres = ctx[].res.get()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user