fix: avoid worker-threads restart at error during startup
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerStaticPool.ts
index b1cc718949b4d0ea94d3c338315bf8284cd45e43..acc61b8fad0fadac0fa66a7f7433a9e143db4658 100644 (file)
@@ -13,7 +13,7 @@ export class WorkerStaticPool extends WorkerAbstract<WorkerData> {
    * @param workerScript -
    * @param workerOptions -
    */
-  constructor(workerScript: string, workerOptions?: WorkerOptions) {
+  constructor(workerScript: string, workerOptions: WorkerOptions) {
     super(workerScript, workerOptions);
     this.pool = new FixedThreadPool(
       this.workerOptions.poolMaxSize,