X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworker%2FWorkerConstants.ts;h=c7f8065ae1dc603842e78e6eae6a8c0fe7133e17;hb=42b8cf5cdca8eaab1e7442f7c92c2a5ed97434f6;hp=8c66df029213ca4876f213ca2dcb552a27317bbb;hpb=bcbb76a6957d1c0bad4a51c040af58788b8b186f;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 8c66df02..c7f8065a 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -1,4 +1,4 @@ -import { type ThreadPoolOptions, availableParallelism } from 'poolifier'; +import { availableParallelism } from 'poolifier'; import type { WorkerOptions } from './WorkerTypes'; @@ -20,10 +20,8 @@ export const DEFAULT_WORKER_OPTIONS: WorkerOptions = Object.freeze({ poolMinSize: DEFAULT_POOL_MIN_SIZE, poolMaxSize: DEFAULT_POOL_MAX_SIZE, elementsPerWorker: DEFAULT_ELEMENTS_PER_WORKER, - poolOptions: {}, + poolOptions: { + enableEvents: true, + restartWorkerOnError: true, + }, }); - -export const DEFAULT_POOL_OPTIONS: ThreadPoolOptions = { - enableEvents: true, - restartWorkerOnError: true, -};