Skip to content

Commit

Permalink
don't use underscore for used type Weave parameter (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn authored Jan 4, 2023
1 parent b76e9ff commit 7682784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weave/runtime.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7682784

Please sign in to comment.