X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerStaticPool.ts;h=2ec049e15514d356fbb0b787c43f48e3efd9d1ff;hb=27e40a3b65c82807a3bf15a0e56b6f24fceb89f8;hp=c3209c251ed7c35b4d4511d84e198131a0eff174;hpb=0e4fa348298d36900560f7466f21f44090d2fe1b;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerStaticPool.ts b/src/worker/WorkerStaticPool.ts index c3209c25..2ec049e1 100644 --- a/src/worker/WorkerStaticPool.ts +++ b/src/worker/WorkerStaticPool.ts @@ -2,10 +2,10 @@ import type { Worker } from 'worker_threads'; import { type ErrorHandler, type ExitHandler, FixedThreadPool } from 'poolifier'; -import type { WorkerData, WorkerOptions } from '../types/Worker'; -import Utils from '../utils/Utils'; import WorkerAbstract from './WorkerAbstract'; import { WorkerUtils } from './WorkerUtils'; +import type { WorkerData, WorkerOptions } from '../types/Worker'; +import Utils from '../utils/Utils'; export default class WorkerStaticPool extends WorkerAbstract { private readonly pool: FixedThreadPool; @@ -36,8 +36,8 @@ export default class WorkerStaticPool extends WorkerAbstract { return this.pool.workers.length; } - get maxElementsPerWorker(): number | null { - return null; + get maxElementsPerWorker(): number | undefined { + return undefined; } /**