mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-02-14 10:43:12 +00:00
cleanup
This commit is contained in:
parent
216a5ea518
commit
2e0e4d18cc
@ -83,7 +83,6 @@ method put*(
|
|||||||
echo "\nSharedDataStore:put:value: ", ret[].repr
|
echo "\nSharedDataStore:put:value: ", ret[].repr
|
||||||
return success()
|
return success()
|
||||||
|
|
||||||
|
|
||||||
method put*(
|
method put*(
|
||||||
self: SharedDatastore,
|
self: SharedDatastore,
|
||||||
batch: seq[BatchEntry]
|
batch: seq[BatchEntry]
|
||||||
@ -93,7 +92,6 @@ method put*(
|
|||||||
method close*(
|
method close*(
|
||||||
self: SharedDatastore
|
self: SharedDatastore
|
||||||
): Future[?!void] {.async.} =
|
): Future[?!void] {.async.} =
|
||||||
|
|
||||||
# TODO: how to handle failed close?
|
# TODO: how to handle failed close?
|
||||||
return success()
|
return success()
|
||||||
|
|
||||||
|
|||||||
@ -108,7 +108,7 @@ proc startupDatastore(
|
|||||||
else:
|
else:
|
||||||
discard
|
discard
|
||||||
|
|
||||||
echo "startupDatastore: signal", ret[].signal.fireSync().get()
|
print "startupDatastore: signal", ret[].signal.fireSync()
|
||||||
|
|
||||||
proc getTask*(
|
proc getTask*(
|
||||||
ret: TResult[DataBuffer],
|
ret: TResult[DataBuffer],
|
||||||
@ -123,7 +123,7 @@ proc getTask*(
|
|||||||
ret[].state = Success
|
ret[].state = Success
|
||||||
ret[].value = data
|
ret[].value = data
|
||||||
|
|
||||||
print "thrbackend: putTask: fire", ret[].signal.fireSync().get()
|
print "thrbackend: putTask: fire", ret[].signal.fireSync()
|
||||||
|
|
||||||
proc get*(
|
proc get*(
|
||||||
ret: TResult[DataBuffer],
|
ret: TResult[DataBuffer],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user