X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fabstract-worker-choice-strategy.ts;h=d60d2905674e5b6fc5baa66616a63e9ab9f1fc85;hb=bbeadd16bc03b9199221a7fb5732af46e7867ded;hp=1da5dc52ee69537e5a828a23c74262246867316b;hpb=3e1f468a6b30654b2ea63f87e3de1e01e808b322;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