perf: avoid branching on pool type
[poolifier.git] / src / pools / cluster / fixed.ts
index 545238b0136fc5f0b1ae8d4c43710a302d087f8d..b7bf9c1a70bb150d98414571c0820752a8707c9a 100644 (file)
@@ -89,6 +89,11 @@ export class FixedClusterPool<
     this.workerNodes[workerNodeKey].worker.off('message', listener)
   }
 
+  /** @inheritDoc */
+  protected shallCreateDynamicWorker (): boolean {
+    return false
+  }
+
   /** @inheritDoc */
   protected get type (): PoolType {
     return PoolTypes.fixed