Skip to content

Commit

Permalink
executor use new WorkerPool
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmdawn committed Nov 22, 2022
1 parent 44d36de commit b9026ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/batch_work_executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class BatchWorkExecutor<Args extends any[], Ret = any> {
}

async execute(workIterable: Iterable<any>, workerFile: string, ...args: Args): Promise<any[]> {
this.workerPool = new WorkerPool(workerFile, {
this.workerPool = WorkerPool.getInstance(workerFile, {
maxWorkers: this.maxWorkers,
})
_logger.info(`WorkerPool created.`)
Expand Down

0 comments on commit b9026ef

Please sign in to comment.