From b2365b8a62507e65ca7f857c087f1b9af5ffef01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 20 Dec 2023 15:54:55 +0100 Subject: [PATCH] refactor: cleanups 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 | 1 - .../interleaved-weighted-round-robin-worker-choice-strategy.ts | 2 +- 2 files changed, 1 insertion(+), 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 fe8c7543..d91f3c69 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -57,7 +57,6 @@ export abstract class AbstractWorkerChoiceStrategy< protected readonly pool: IPool, protected opts: InternalWorkerChoiceStrategyOptions ) { - // this.setOptions(this.opts) this.opts = buildInternalWorkerChoiceStrategyOptions( this.pool.info.maxSize, this.opts diff --git a/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts index 16d8cdbe..b11f0a17 100644 --- a/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts @@ -40,7 +40,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy< /** * Round weights. */ - private roundWeights!: number[] + private roundWeights: number[] /** * Worker node id. */ -- 2.34.1