From: Jérôme Benoit Date: Mon, 26 Jun 2023 23:22:38 +0000 (+0200) Subject: refactor: refine worker attribute scope X-Git-Tag: v2.6.4~6 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=448ad5810fdecae4747d35d64b3f6e016ed264f1;p=poolifier.git refactor: refine worker attribute scope Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 8d82ed61..f42f2c47 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -67,7 +67,7 @@ export abstract class AbstractWorker< taskFunctions: | WorkerFunction | TaskFunctions, - protected mainWorker: MainWorker, + protected readonly mainWorker: MainWorker, protected readonly opts: WorkerOptions = { /** * The kill behavior option on this worker or its default value.