X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fabstract-pool.ts;h=fb1bf8458ad7a970f27ae7a4dcbb300faf5bf848;hb=4e1212db1d198963828820471bde6902277d0388;hp=69df163bb5775d7ee1c38fe2c8ebd4594ced165e;hpb=4735284627d276d3532cb3bd4b6d7fe392bb6b8b;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 69df163b..fb1bf845 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -662,7 +662,7 @@ export abstract class AbstractPool< ...{ size: Math.pow(this.maxSize, 2), concurrency: 1, - tasksStealing: true, + taskStealing: true, tasksStealingOnBackPressure: true }, ...tasksQueueOptions @@ -1170,7 +1170,7 @@ export abstract class AbstractPool< // Send the statistics message to worker. this.sendStatisticsMessageToWorker(workerNodeKey) if (this.opts.enableTasksQueue === true) { - if (this.opts.tasksQueueOptions?.tasksStealing === true) { + if (this.opts.tasksQueueOptions?.taskStealing === true) { this.workerNodes[workerNodeKey].onEmptyQueue = this.taskStealingOnEmptyQueue.bind(this) }