X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Ffixed.ts;h=b8a73e4b0562fff6fbca6f48cab4b582c3c5a562;hb=a454d5734637350c42e101c8027215b7dc0f240d;hp=092e97781911ec89ab1e16c5e2af0ca485fe1174;hpb=4f3c3d894171421375559b43ce469bd5ccb475da;p=poolifier.git diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index 092e9778..b8a73e4b 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -1,7 +1,6 @@ -import type { ClusterSettings, Worker } from 'cluster' -import cluster from 'cluster' +import type { ClusterSettings, Worker } from 'node:cluster' +import cluster from 'node:cluster' import type { MessageValue } from '../../utility-types' -import { EMPTY_OBJECT_LITERAL } from '../../utils' import { AbstractPool } from '../abstract-pool' import type { PoolOptions } from '../pool' import { PoolType } from '../pool-internal' @@ -51,7 +50,7 @@ export class FixedClusterPool< public constructor ( numberOfWorkers: number, filePath: string, - public readonly opts: ClusterPoolOptions = EMPTY_OBJECT_LITERAL + public readonly opts: ClusterPoolOptions = {} ) { super(numberOfWorkers, filePath, opts) }