refactor: cleanup
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 3 Jun 2023 09:55:17 +0000 (11:55 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 3 Jun 2023 09:55:17 +0000 (11:55 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/thread/dynamic.ts

index 00d25c0a5fd8d1060a575b9995c4e189475f15a5..79c43b7d5a1b15bdc9b63f7ebd781906c67b5deb 100644 (file)
@@ -39,13 +39,13 @@ export class DynamicThreadPool<
   }
 
   /** @inheritDoc */
-  protected get full (): boolean {
-    return this.workerNodes.length >= this.max
+  protected get maxSize (): number {
+    return this.max
   }
 
   /** @inheritDoc */
-  protected get maxSize (): number {
-    return this.max
+  protected get full (): boolean {
+    return this.workerNodes.length >= this.max
   }
 
   /** @inheritDoc */