perf: remove unneeded class indirection for dynamic pool in worker
[poolifier.git] / src / worker / abstract-worker.ts
index 9c4fd514cc97d46cdfa5eee261993a386719dbe9..bf81a9f2432ff81606f7c10536c6ce338f16f066 100644 (file)
@@ -44,7 +44,7 @@ export abstract class AbstractWorker<
    */
   public constructor (
     type: string,
-    protected isMain: boolean,
+    protected readonly isMain: boolean,
     fn: (data: Data) => Response,
     protected mainWorker: MainWorker | undefined | null,
     opts: WorkerOptions = {