mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 14:13:09 +00:00
links in dispose call to leveldb wrapper
This commit is contained in:
parent
0c0cb4ac60
commit
fc5a6551da
@ -11,7 +11,7 @@ requires "nim >= 1.2.0",
|
||||
"chronos#c41599a", # FIXME change to Chronos >= 4.0.0 once it's out
|
||||
"questionable >= 0.10.15 & < 0.11.0",
|
||||
"sqlite3_abi",
|
||||
"leveldbstatic >= 0.1.2",
|
||||
"leveldbstatic >= 0.1.3",
|
||||
"stew",
|
||||
"unittest2"
|
||||
|
||||
|
||||
@ -108,10 +108,18 @@ method query*(
|
||||
except Exception as e:
|
||||
return failure("Unknown exception in LevelDbDatastore.query -> next: " & $e.msg)
|
||||
|
||||
iter.next = next
|
||||
iter.dispose = proc(): Future[?!void] {.async.} =
|
||||
proc dispose(): Future[?!void] {.async.} =
|
||||
try:
|
||||
dbIter.dispose()
|
||||
return success()
|
||||
except LevelDbException as e:
|
||||
return failure("LevelDbDatastore.query -> dispose exception: " & $e.msg)
|
||||
except Exception as e:
|
||||
return failure("Unknown exception in LevelDbDatastore.query -> dispose: " & $e.msg)
|
||||
return success()
|
||||
|
||||
iter.next = next
|
||||
iter.dispose = dispose
|
||||
return success iter
|
||||
|
||||
method modifyGet*(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user