From: Jérôme Benoit Date: Wed, 20 Dec 2023 14:54:55 +0000 (+0100) Subject: refactor: cleanups X-Git-Tag: v3.1.7~1^2~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b2365b8a62507e65ca7f857c087f1b9af5ffef01;p=poolifier.git refactor: cleanups 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 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. */