refactor!: rename staticPool tunable in worker section to fixedPool
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerFactory.ts
index 59fbf3a44fe46409a0d84c5a11ed0abcf7fce7f1..d248d3bab765b5aabad6e9d5e2afb5dc773c5df0 100644 (file)
@@ -3,8 +3,8 @@ import { isMainThread } from 'node:worker_threads';
 import type { WorkerAbstract } from './WorkerAbstract';
 import { DEFAULT_WORKER_OPTIONS } from './WorkerConstants';
 import { WorkerDynamicPool } from './WorkerDynamicPool';
+import { WorkerFixedPool } from './WorkerFixedPool';
 import { WorkerSet } from './WorkerSet';
-import { WorkerStaticPool } from './WorkerStaticPool';
 import { type WorkerData, type WorkerOptions, WorkerProcessType } from './WorkerTypes';
 
 export class WorkerFactory {
@@ -26,8 +26,8 @@ export class WorkerFactory {
       case WorkerProcessType.workerSet:
         workerImplementation = new WorkerSet(workerScript, workerOptions);
         break;
-      case WorkerProcessType.staticPool:
-        workerImplementation = new WorkerStaticPool(workerScript, workerOptions);
+      case WorkerProcessType.fixedPool:
+        workerImplementation = new WorkerFixedPool(workerScript, workerOptions);
         break;
       case WorkerProcessType.dynamicPool:
         workerImplementation = new WorkerDynamicPool(workerScript, workerOptions);