From 2d843857cdfecffa575b940fa813b40afa940b88 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Tue, 26 Sep 2023 19:35:25 -0700 Subject: [PATCH] cleanup --- datastore/threads/threadproxyds.nim | 6 +++--- tests/datastore/querycommontests.nim | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/datastore/threads/threadproxyds.nim b/datastore/threads/threadproxyds.nim index 4e2a429..ae14782 100644 --- a/datastore/threads/threadproxyds.nim +++ b/datastore/threads/threadproxyds.nim @@ -63,17 +63,17 @@ var ctxLock: Lock ctxLock.initLock() proc setCancelled[T](ctx: TaskCtx[T]) = - withLock(ctxLock): + # withLock(ctxLock): ctx[].cancelled = true proc setRunning[T](ctx: TaskCtx[T]): bool = - withLock(ctxLock): + # withLock(ctxLock): if ctx[].cancelled: return false ctx[].running = true return true proc setDone[T](ctx: TaskCtx[T]) = - withLock(ctxLock): + # withLock(ctxLock): ctx[].running = false proc acquireSignal(): ?!ThreadSignalPtr = diff --git a/tests/datastore/querycommontests.nim b/tests/datastore/querycommontests.nim index 2ee4f5d..460804b 100644 --- a/tests/datastore/querycommontests.nim +++ b/tests/datastore/querycommontests.nim @@ -40,7 +40,6 @@ template queryTests*(ds: Datastore, extended = true) {.dirty.} = var res: seq[QueryResponse] for pair in iter: let (key, val) = (await pair).tryGet - echo "test:query:result: ", $key if key.isNone: break res.add((key, val))