From 7682784f31ea521f8489df8c8f0d7cfa8ec79b33 Mon Sep 17 00:00:00 2001 From: metagn Date: Wed, 4 Jan 2023 22:38:48 +0300 Subject: [PATCH] don't use underscore for used type Weave parameter (#190) --- weave/runtime.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weave/runtime.nim b/weave/runtime.nim index a543f8f..bacb2e2 100644 --- a/weave/runtime.nim +++ b/weave/runtime.nim @@ -175,13 +175,13 @@ proc globalCleanup() = metrics: log("+========================================+\n") -proc exit*(_: type Weave, auxiliary: AuxiliaryProc = WV_NoAuxiliary) = +proc exit*(W: type Weave, auxiliary: AuxiliaryProc = WV_NoAuxiliary) = when auxiliary is proc() {.cdecl, gcsafe.}: globalCtx.auxiliaryExit = proc() {.nimcall, gcsafe.} = auxiliary else: globalCtx.auxiliaryExit = auxiliary - syncRoot(_) + syncRoot(W) signalTerminate(nil) workerContext.signaledTerminate = true