From: Jérôme Benoit Date: Wed, 20 Nov 2024 14:33:02 +0000 (+0100) Subject: refactor: flag strategy policy property as read only X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=49d535291c406cdf8deb32322be3eb307548a62c;p=poolifier.git refactor: flag strategy policy property as read only Signed-off-by: Jérôme Benoit --- 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 =