mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-06 23:53:09 +00:00
more changes
This commit is contained in:
parent
04927c9faa
commit
a6fa280c91
@ -82,8 +82,9 @@ func new*[S: ref Datastore](
|
||||
|
||||
var
|
||||
self = SharedDatastore()
|
||||
signal = newSignal()
|
||||
res = TResult[ThreadDatastore].new()
|
||||
self.tds = ThreadDatastore.new(signal, backend, res)
|
||||
|
||||
res[].signal = newSignal()
|
||||
self.tds = ThreadDatastore.new(backend, res)
|
||||
|
||||
success self
|
||||
|
||||
@ -86,7 +86,6 @@ proc getTask*(
|
||||
key: KeyBuffer,
|
||||
ret: TResult[DataBuffer]
|
||||
) =
|
||||
|
||||
# return ok(DataBuffer.new())
|
||||
discard
|
||||
|
||||
@ -108,7 +107,7 @@ proc putTask*(
|
||||
# except Exception as exc:
|
||||
# return TResult[void].new()
|
||||
|
||||
func new*[S: ref Datastore](
|
||||
func new*(
|
||||
T: typedesc[ThreadDatastore],
|
||||
signal: ThreadSignalPtr,
|
||||
backend: ThreadBackend,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user