X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fabstract-worker-choice-strategy.ts;h=d60d2905674e5b6fc5baa66616a63e9ab9f1fc85;hb=812ad701baefad24cad2df8f9a60bf4d581d8697;hp=1da5dc52ee69537e5a828a23c74262246867316b;hpb=f9f00b5f18805c14b1bac3b2e5d2e8b5abc6c66c;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 1da5dc52..d60d2905 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -1,3 +1,4 @@ +import { DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS } from '../../utils' import type { IPoolInternal } from '../pool-internal' import { PoolType } from '../pool-internal' import type { IWorker } from '../worker' @@ -36,7 +37,7 @@ export abstract class AbstractWorkerChoiceStrategy< */ public constructor ( protected readonly pool: IPoolInternal, - protected readonly opts: WorkerChoiceStrategyOptions = { medRunTime: false } + protected readonly opts: WorkerChoiceStrategyOptions = DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS ) { this.checkOptions(this.opts) this.isDynamicPool = this.pool.type === PoolType.DYNAMIC