fix: reference poolifier pool property
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Apr 2023 13:11:28 +0000 (15:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Apr 2023 13:11:28 +0000 (15:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/WorkerDynamicPool.ts
src/worker/WorkerStaticPool.ts

index 8a7e6e558f170c42e00ab22c257507370b50e96e..ff80bfcbdf5a082b885620e025fd335db3696947 100644 (file)
@@ -33,7 +33,7 @@ export class WorkerDynamicPool extends WorkerAbstract<WorkerData> {
   }
 
   get size(): number {
-    return this.pool.workers.length;
+    return this.pool.workerNodes.length;
   }
 
   get maxElementsPerWorker(): number | undefined {
index 8a717ad8b81f7010d27bd4a6f83ae0b781e8f836..de1f5b29cfb89aebc39240584f9ed045ee6b1efb 100644 (file)
@@ -32,7 +32,7 @@ export class WorkerStaticPool extends WorkerAbstract<WorkerData> {
   }
 
   get size(): number {
-    return this.pool.workers.length;
+    return this.pool.workerNodes.length;
   }
 
   get maxElementsPerWorker(): number | undefined {