refactor: freeze empty function type
[poolifier.git] / src / pools / cluster / dynamic.ts
index 8b8c5185772dbea59bc0d22b2e1cb90b9383d507..513a73c5d7804cfa2e109a5d9cf6c01f4c060945 100644 (file)
@@ -1,3 +1,4 @@
+import { EMPTY_OBJECT_LITERAL } from '../../utils'
 import { PoolType } from '../pool-internal'
 import type { ClusterPoolOptions } from './fixed'
 import { FixedClusterPool } from './fixed'
@@ -29,7 +30,7 @@ export class DynamicClusterPool<
     min: number,
     protected readonly max: number,
     filePath: string,
-    opts: ClusterPoolOptions = {}
+    opts: ClusterPoolOptions = EMPTY_OBJECT_LITERAL
   ) {
     super(min, filePath, opts)
   }