From: Jérôme Benoit Date: Sat, 3 Jun 2023 09:55:17 +0000 (+0200) Subject: refactor: cleanup X-Git-Tag: v2.5.3~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=18bfcd0b3052d1d049181dfbb30045c3a05ab260;p=poolifier.git refactor: cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/thread/dynamic.ts b/src/pools/thread/dynamic.ts index 00d25c0a..79c43b7d 100644 --- a/src/pools/thread/dynamic.ts +++ b/src/pools/thread/dynamic.ts @@ -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 */