X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerFactory.ts;h=d95f4d326f6dff656b9be314cecf1683ff1110b0;hb=793e927700cd3841dd6373677cd699795a4f187f;hp=70bcc3862c4fca8c42a66d7e0f52e7568bfbef80;hpb=6fee1791db82bd4605b180612fe642a7e2c4caa0;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerFactory.ts b/src/worker/WorkerFactory.ts index 70bcc386..d95f4d32 100644 --- a/src/worker/WorkerFactory.ts +++ b/src/worker/WorkerFactory.ts @@ -19,7 +19,7 @@ export default class WorkerFactory { workerOptions?: WorkerOptions ): WorkerAbstract | null { if (!isMainThread) { - throw new Error('Trying to get a worker implementation outside the main thread'); + throw new Error('Cannot get a worker implementation outside the main thread'); } workerOptions = workerOptions ?? ({} as WorkerOptions); workerOptions.workerStartDelay = @@ -30,9 +30,7 @@ export default class WorkerFactory { workerOptions?.messageHandler && // eslint-disable-next-line @typescript-eslint/no-misused-promises (workerOptions.poolOptions.messageHandler = workerOptions.messageHandler); - console.log('before'); let workerImplementation: WorkerAbstract = null; - console.log(workerImplementation); switch (workerProcessType) { case WorkerProcessType.WORKER_SET: workerOptions.elementsPerWorker =