X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-hybrid%2Fsrc%2Ffastify-poolifier.ts;h=b4369082833e5409823401a9c61608765d97138a;hb=783d540c163b7da18cb2a05f8ce9624beb0faaf4;hp=79d24dc61fe0a3f47a25d4e5fb5ddeb5880e2a2a;hpb=ea4b5fd037c5fe09eb6a2810332ad6bed1b5bc7f;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts index 79d24dc6..b4369082 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/fastify-poolifier.ts @@ -4,10 +4,10 @@ import type { FastifyPluginCallback } from 'fastify' import fp from 'fastify-plugin' import { availableParallelism, DynamicThreadPool } from 'poolifier' -import { - type FastifyPoolifierOptions, - type ThreadWorkerData, - type ThreadWorkerResponse +import type { + FastifyPoolifierOptions, + ThreadWorkerData, + ThreadWorkerResponse } from './types.js' const fastifyPoolifierPlugin: FastifyPluginCallback = ( @@ -38,7 +38,7 @@ const fastifyPoolifierPlugin: FastifyPluginCallback = ( async ( data?: ThreadWorkerData, name?: string, - transferList?: TransferListItem[] + transferList?: readonly TransferListItem[] ): Promise => await pool.execute(data, name, transferList) )