From: Jérôme Benoit Date: Tue, 19 Nov 2024 14:43:27 +0000 (+0100) Subject: refactor: revert flagging worker options as readonly X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5c85bc8c72222b81083a5e6c1f3002019da49a6a;p=poolifier.git refactor: revert flagging worker options as readonly Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 1ea46a23..9549d18c 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -194,7 +194,7 @@ export abstract class AbstractWorker< protected readonly isMain: boolean | undefined, private readonly mainWorker: MainWorker | null | undefined, taskFunctions: TaskFunction | TaskFunctions, - protected readonly opts: WorkerOptions = DEFAULT_WORKER_OPTIONS + protected opts: WorkerOptions = DEFAULT_WORKER_OPTIONS ) { if (this.isMain == null) { throw new Error('isMain parameter is mandatory')