- /** {@inheritDoc} */
- public remove (workerKey: number): boolean {
- const workerDeleted = this.workerLastVirtualTaskTimestamp.delete(workerKey)
- for (const [key, value] of this.workerLastVirtualTaskTimestamp.entries()) {
- if (key > workerKey) {
- this.workerLastVirtualTaskTimestamp.set(key - 1, value)
- }
- }
- return workerDeleted
+ /** @inheritDoc */
+ public remove (workerNodeKey: number): boolean {
+ this.workersVirtualTaskTimestamp.splice(workerNodeKey, 1)
+ return true