X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-cluster%2Fsrc%2Fworker.ts;h=7dd607b5b17cfd703d4dd75ae0c08d5aa6c5dd7b;hb=76a3a76becd6ac41efb3271c708431a666828c30;hp=da1066c4a7d997e044af5731596ca08c36a251ed;hpb=edd5088275648b8ae534dcd75ba23443fe947954;p=poolifier.git diff --git a/examples/typescript/http-server-pool/express-cluster/src/worker.ts b/examples/typescript/http-server-pool/express-cluster/src/worker.ts index da1066c4..7dd607b5 100644 --- a/examples/typescript/http-server-pool/express-cluster/src/worker.ts +++ b/examples/typescript/http-server-pool/express-cluster/src/worker.ts @@ -1,8 +1,8 @@ -import type { Server } from 'http' -import type { AddressInfo } from 'net' +import type { Server } from 'node:http' +import type { AddressInfo } from 'node:net' import { ClusterWorker } from 'poolifier' import express, { type Express, type Request, type Response } from 'express' -import { type WorkerData, type WorkerResponse } from './types.js' +import type { WorkerData, WorkerResponse } from './types.js' const factorial: (n: number) => number = n => { if (n === 0) {