From 955a7d92aacad31127ceb5f9ff7fcc031f3d092d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 21 Jan 2021 22:29:06 +0100 Subject: [PATCH] Add a default value for workerPoolMaxSize. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Configuration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index f0054ede..8770a9b9 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -43,7 +43,7 @@ export default class Configuration { static getWorkerPoolMaxSize(): number { Configuration.deprecateConfigurationKey('workerPoolSize;', 'Use \'workerPoolMaxSize\' instead'); - return Configuration.getConfig().workerPoolMaxSize; + return Configuration.useWorkerPool() && Configuration.objectHasOwnProperty(Configuration.getConfig(), 'workerPoolMaxSize') ? Configuration.getConfig().workerPoolMaxSize : 16; } static getChargingStationsPerWorker(): number { -- 2.34.1