X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fabstract-worker-choice-strategy.ts;h=ebe74dcb07543b7c7698e2c2f284c33893b6e9ca;hb=5a94e4b950eaf2234e07f87261ddea1482e839c6;hp=314c13c0cd02063a569a8ee5997a1d748b13cdbd;hpb=38e795c12f0e9daeff7b025147f36f85f486366e;p=poolifier.git diff --git a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts index 314c13c0..ebe74dcb 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -19,7 +19,7 @@ export abstract class AbstractWorkerChoiceStrategy< Response > implements IWorkerChoiceStrategy { /** {@inheritDoc} */ - public readonly isDynamicPool: boolean = this.pool.type === PoolType.DYNAMIC + public readonly isDynamicPool: boolean /** {@inheritDoc} */ public requiredStatistics: RequiredStatistics = { runTime: false @@ -32,7 +32,9 @@ export abstract class AbstractWorkerChoiceStrategy< */ public constructor ( protected readonly pool: IPoolInternal - ) {} + ) { + this.isDynamicPool = this.pool.type === PoolType.DYNAMIC + } /** {@inheritDoc} */ public abstract reset (): boolean