repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump @types/node from 14.14.32 to 14.14.33 (#265)
[poolifier.git]
/
src
/
pools
/
cluster
/
dynamic.ts
diff --git
a/src/pools/cluster/dynamic.ts
b/src/pools/cluster/dynamic.ts
index 4a5f720aca0a315af076cfacd3bb17725f27a3a8..33497b0314ef1e46eb3bd129557f31b5e5f4cc17 100644
(file)
--- a/
src/pools/cluster/dynamic.ts
+++ b/
src/pools/cluster/dynamic.ts
@@
-1,3
+1,4
@@
+import { PoolType } from '../pool-internal'
import type { ClusterPoolOptions } from './fixed'
import { FixedClusterPool } from './fixed'
import type { ClusterPoolOptions } from './fixed'
import { FixedClusterPool } from './fixed'
@@
-35,7
+36,12
@@
export class DynamicClusterPool<
}
/** @inheritdoc */
}
/** @inheritdoc */
- public isDynamic (): boolean {
- return true
+ public get type (): PoolType {
+ return PoolType.DYNAMIC
+ }
+
+ /** @inheritdoc */
+ public get busy (): boolean {
+ return this.workers.length === this.max
}
}
}
}