- public remove (workerKey: number): boolean {
- if (this.nextWorkerId === workerKey) {
- if (this.pool.workers.length === 0) {
- this.nextWorkerId = 0
+ public remove (workerNodeKey: number): boolean {
+ if (this.nextWorkerNodeId === workerNodeKey) {
+ if (this.pool.workerNodes.length === 0) {
+ this.nextWorkerNodeId = 0