X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Ftypescript%2Fhttp-server-pool%2Ffastify-worker_threads%2Fsrc%2Fmain.ts;h=f1271c6e13566ae1b80067a178579b9a3190cb6e;hb=30369cc0f200d553cfc72fce6e8685c66fa1e344;hp=cc647a0fd2a707916999b6521096e298f872837d;hpb=3b3115396965edad0cf3fefc4f9081977310da34;p=poolifier.git diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts index cc647a0f..f1271c6e 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts @@ -28,13 +28,13 @@ await fastify.register(fastifyPoolifier, { } }) -fastify.all('/api/echo', async request => { +fastify.all('/api/echo', async (request) => { return (await fastify.execute({ body: request.body }, 'echo')).body }) fastify.get<{ Params: { number: number } -}>('/api/factorial/:number', async request => { +}>('/api/factorial/:number', async (request) => { const { number } = request.params return (await fastify.execute({ body: { number } }, 'factorial')).body })