X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fweighted-round-robin-worker-choice-strategy.ts;h=f4bac5d76c4e3b669bb5720b99c03b07eabc577d;hb=aec509b85e7d73e9883c8885e27fc4e34fdaef1e;hp=c2782e8b2bf844b1a767eafcfe8554b0fc568ec7;hpb=da3098610d6cf6155bbbe53c84b6ac6ccd400ff5;p=poolifier.git diff --git a/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts index c2782e8b..f4bac5d7 100644 --- a/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts @@ -1,5 +1,4 @@ import { cpus } from 'node:os' -import type { IPoolInternal } from '../pool-internal' import type { IWorker } from '../worker' import { AbstractWorkerChoiceStrategy } from './abstract-worker-choice-strategy' import type { @@ -7,6 +6,7 @@ import type { RequiredStatistics, WorkerChoiceStrategyOptions } from './selection-strategies-types' +import type { IPool } from '../pool' /** * Virtual task runtime. @@ -61,7 +61,7 @@ export class WeightedRoundRobinWorkerChoiceStrategy< * @param opts - The worker choice strategy options. */ public constructor ( - pool: IPoolInternal, + pool: IPool, opts?: WorkerChoiceStrategyOptions ) { super(pool, opts)