X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fabstract-worker-choice-strategy.ts;h=44e7e3f8b5ea01b7c707e0754f580b9181ea9a4b;hb=02b9f29b9b6fafd5e811dfbce4a7e0d65caf5123;hp=aa370fe433e74065e4155d8612499abef5ec59fb;hpb=9cd39dd47830f0923cd3ebf53b709bf7fb07e788;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 aa370fe4..44e7e3f8 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -17,7 +17,7 @@ export abstract class AbstractWorkerChoiceStrategy< Worker extends IPoolWorker, Data, Response -> implements IWorkerChoiceStrategy { +> implements IWorkerChoiceStrategy { /** {@inheritDoc} */ public readonly isDynamicPool: boolean /** {@inheritDoc} */ @@ -32,7 +32,7 @@ export abstract class AbstractWorkerChoiceStrategy< * @param pool - The pool instance. */ public constructor ( - protected readonly pool: IPoolInternal + public readonly pool: IPoolInternal ) { this.isDynamicPool = this.pool.type === PoolType.DYNAMIC this.choose.bind(this)