repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge dependabot/npm_and_yarn/examples/typescript/websocket-server-pool/ws-hybrid...
[poolifier.git]
/
examples
/
typescript
/
http-server-pool
/
fastify-worker_threads
/
src
/
fastify-poolifier.ts
diff --git
a/examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts
b/examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts
index aa9a6d1459813c6a4cf66f0d2ce9795db5b63288..cd1909b7f3d7eab8f83f781971e452b7108e129d 100644
(file)
--- a/
examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts
+++ b/
examples/typescript/http-server-pool/fastify-worker_threads/src/fastify-poolifier.ts
@@
-22,8
+22,8
@@
const fastifyPoolifierPlugin: FastifyPluginCallback<FastifyPoolifierOptions> = (
}
const { workerFile, minWorkers, maxWorkers, ...poolOptions } = options
const pool = new DynamicThreadPool<WorkerData, WorkerResponse>(
- minWorkers
as number
,
- maxWorkers
as number
,
+ minWorkers
!
,
+ maxWorkers
!
,
workerFile,
poolOptions
)