From ce63d9e2f3d895bd2ae5aafc40769ff4dda3c887 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 31 Dec 2023 15:02:49 +0100 Subject: [PATCH] refactor: dedupe worker choice strategy options handling code 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts index 234eada7..d8d8f32d 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -57,11 +57,7 @@ export abstract class AbstractWorkerChoiceStrategy< protected readonly pool: IPool, protected opts?: WorkerChoiceStrategyOptions ) { - this.opts = buildWorkerChoiceStrategyOptions( - this.pool, - this.opts - ) - this.setTaskStatisticsRequirements(this.opts) + this.setOptions(this.opts) this.choose = this.choose.bind(this) } -- 2.34.1