From: Jérôme Benoit Date: Tue, 18 Apr 2023 18:49:08 +0000 (+0200) Subject: build: silence code smells X-Git-Tag: v2.4.11~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7c5a10806224c6cee2bfc6eccd5496439badae68;p=poolifier.git build: silence code smells Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index b299bc01..47378980 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -7,13 +7,13 @@ import { } from '../utils' import { KillBehaviors, isKillBehavior } from '../worker/worker-options' import { + PoolEmitter, PoolEvents, type IPool, type PoolOptions, type TasksQueueOptions, PoolType } from './pool' -import { PoolEmitter } from './pool' import type { IWorker, Task, TasksUsage, WorkerNode } from './worker' import { WorkerChoiceStrategies, @@ -428,7 +428,7 @@ export abstract class AbstractPool< ) { // Kill message received from the worker: no new tasks are submitted to that worker for a while ( > maxInactiveTime) this.flushTasksQueueByWorker(workerCreated) - void this.destroyWorker(workerCreated) + void (this.destroyWorker(workerCreated) as Promise) } }) workerNodeKey = this.getWorkerNodeKey(workerCreated)