From 8e573bdfc7e88be8c53731f6791a174dfc5215b3 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Mon, 25 Sep 2023 22:53:28 -0700 Subject: [PATCH] simplifying --- datastore/threads/threadproxyds.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/threads/threadproxyds.nim b/datastore/threads/threadproxyds.nim index c589998..8425caa 100644 --- a/datastore/threads/threadproxyds.nim +++ b/datastore/threads/threadproxyds.nim @@ -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)