Silence sonar
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Oct 2022 23:02:21 +0000 (01:02 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Oct 2022 23:02:21 +0000 (01:02 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index e97df5556dd500d6204471e58a2d26eb63400ecc..6b12c2f99b6b986d822668c2648e0ff0ec59bd33 100644 (file)
@@ -105,7 +105,7 @@ export abstract class AbstractPool<
             this.getWorkerRunningTasks(workerCreated) === 0
           ) {
             // Kill received from the worker, means that no new tasks are submitted to that worker for a while ( > maxInactiveTime)
-            void this.destroyWorker(workerCreated)
+            void (this.destroyWorker(workerCreated) as Promise<void>)
           }
         })
         return workerCreated