X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FConfiguration.ts;h=8770a9b9f3ec48cf5859d52b8a2383585a4b8351;hb=418106c832022ba6f100f4bf81315300994bee87;hp=eb1992b3dc33a75a4a063897dfcb48da93ec1132;hpb=72a965c4c1a907dfee70da0c97e88c221eefdebc;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index eb1992b3..8770a9b9 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -41,8 +41,9 @@ export default class Configuration { return Configuration.getConfig().useWorkerPool; } - static getWorkerMaxPoolSize(): number { - return Configuration.getConfig().workerMaxPoolSize; + static getWorkerPoolMaxSize(): number { + Configuration.deprecateConfigurationKey('workerPoolSize;', 'Use \'workerPoolMaxSize\' instead'); + return Configuration.useWorkerPool() && Configuration.objectHasOwnProperty(Configuration.getConfig(), 'workerPoolMaxSize') ? Configuration.getConfig().workerPoolMaxSize : 16; } static getChargingStationsPerWorker(): number {