mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 22:23:10 +00:00
adding testing
This commit is contained in:
parent
0daf1683e8
commit
d5fe24c372
@ -11,6 +11,7 @@ import ./key
|
||||
import ./query
|
||||
import ./datastore
|
||||
import ./threadbackend
|
||||
import threading/smartptrs
|
||||
|
||||
export key, query, ThreadBackend
|
||||
|
||||
@ -78,7 +79,9 @@ proc newSharedDataStore*(
|
||||
|
||||
var
|
||||
self = SharedDatastore()
|
||||
# res = newThreadResult(ThreadDatastorePtr)
|
||||
res = newThreadResult(ThreadDatastorePtr)
|
||||
|
||||
let buf = DataBuffer.new()
|
||||
|
||||
# res[].signal = ThreadSignalPtr.new().valueOr:
|
||||
# return failure newException(DatastoreError, "error creating signal")
|
||||
|
||||
@ -54,7 +54,7 @@ type
|
||||
|
||||
ThreadDatastorePtr* = SharedPtr[ThreadDatastore]
|
||||
|
||||
proc newThreadResult*[T](tp: typedesc[T]): SharedPtr[ThreadResult[T]] =
|
||||
proc newThreadResult*[T](tp: typedesc[T]): TResult[T] =
|
||||
newSharedPtr(ThreadResult[T])
|
||||
|
||||
proc startupDatastore(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user