repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.7.2
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 4fe0c0388d898adae0222e281e4fb70eb66a4c82..70459dbbee743d82f158eb9739e9bda8367478e4 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-1,6
+1,6
@@
import { randomUUID } from 'node:crypto'
import { performance } from 'node:perf_hooks'
import { randomUUID } from 'node:crypto'
import { performance } from 'node:perf_hooks'
-import
{ type
TransferListItem } from 'node:worker_threads'
+import
type {
TransferListItem } from 'node:worker_threads'
import type {
MessageValue,
PromiseResponseWrapper,
import type {
MessageValue,
PromiseResponseWrapper,
@@
-133,8
+133,8
@@
export abstract class AbstractPool<
'Cannot start a pool from a worker with the same type as the pool'
)
}
'Cannot start a pool from a worker with the same type as the pool'
)
}
- this.checkNumberOfWorkers(this.numberOfWorkers)
checkFilePath(this.filePath)
checkFilePath(this.filePath)
+ this.checkNumberOfWorkers(this.numberOfWorkers)
this.checkPoolOptions(this.opts)
this.chooseWorkerNode = this.chooseWorkerNode.bind(this)
this.checkPoolOptions(this.opts)
this.chooseWorkerNode = this.chooseWorkerNode.bind(this)