initial take at making fsds synchronous

This commit is contained in:
Jaremy Creechley 2023-09-26 21:29:12 -07:00
parent 5242b85b36
commit bb9e343e9f
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -158,7 +158,7 @@ proc put*(
proc put*(
self: FSDatastore,
batch: seq[BatchEntry]): ?!void =
batch: seq[DbBatchEntry[KeyId, DataBuffer]]): ?!void =
for entry in batch:
if err =? self.put(entry.key, entry.data).errorOption:
@ -182,7 +182,7 @@ proc close*(self: FSDatastore): ?!void =
proc query*(
self: FSDatastore,
query: DbQuery[KeyId, DataBuffer]): ?!QueryIter =
query: DbQuery[KeyId]): ?!QueryIter =
without path =? self.path(query.key), error:
return failure error