From 8c5eea3ee1ecae0aecb48b07bf414417f899ca4a Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Thu, 14 Sep 2023 13:53:37 -0700 Subject: [PATCH] trying out manual futures --- datastore/threadproxyds.nim | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/datastore/threadproxyds.nim b/datastore/threadproxyds.nim index 139caa7..d8167f1 100644 --- a/datastore/threadproxyds.nim +++ b/datastore/threadproxyds.nim @@ -88,14 +88,9 @@ method put*( ): Future[?!void] {.async.} = echoed "put new request thr: ", $getThreadId() - var ret = await newThreadResult(void) - var answer: ?!void - - block: - put(ret, self.tds, key, data) - - return answer + let res = await put(self.tds, key, data) + return res method put*( self: ThreadProxyDatastore,