From 49d535291c406cdf8deb32322be3eb307548a62c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 20 Nov 2024 15:33:02 +0100 Subject: [PATCH] refactor: flag strategy policy property as read only MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../selection-strategies/abstract-worker-choice-strategy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts index 70a00342..69a30638 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -25,10 +25,10 @@ export abstract class AbstractWorkerChoiceStrategy< Response = unknown > implements IWorkerChoiceStrategy { /** @inheritDoc */ - public readonly strategyPolicy: StrategyPolicy = { + public readonly strategyPolicy: StrategyPolicy = Object.freeze({ dynamicWorkerReady: true, dynamicWorkerUsage: false, - } + }) /** @inheritDoc */ public readonly taskStatisticsRequirements: TaskStatisticsRequirements = -- 2.34.1