mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 14:13:09 +00:00
simplifying
This commit is contained in:
parent
53eedd946c
commit
8e573bdfc7
@ -90,7 +90,7 @@ template dispatchTask(self: ThreadDatastore,
|
||||
of Sqlite:
|
||||
var ds = self.backend.sql
|
||||
proc runTask() =
|
||||
`fn`(addr ctx, ds)
|
||||
self.tp.spawn `fn`(addr ctx, ds)
|
||||
runTask()
|
||||
|
||||
await wait(ctx.signal)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user