From: Jakob Date: Thu, 21 Jan 2021 14:55:22 +0000 (+0100) Subject: remove setMaxListener (not longer needed) X-Git-Tag: v1.0.1-0~133 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dae2300e410767c6d35f780b07705d9b9832e123;p=e-mobility-charging-stations-simulator.git remove setMaxListener (not longer needed) --- diff --git a/src/charging-station/StationWorker.ts b/src/charging-station/StationWorker.ts index a948a1b4..513265e2 100644 --- a/src/charging-station/StationWorker.ts +++ b/src/charging-station/StationWorker.ts @@ -11,7 +11,6 @@ if (!isMainThread) { } function addListener() { - parentPort.setMaxListeners(Constants.MAX_LISTENERS); parentPort.on('message', (e) => { if (e.id === Constants.START_WORKER_ELEMENT) { startChargingStation(e.workerData); diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index e6d10386..5fa60e99 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -35,8 +35,6 @@ export default class Constants { static readonly TRANSACTION_DEFAULT_TAGID = '00000000'; - static readonly MAX_LISTENERS = 1000; - static readonly START_WORKER_DELAY = 500; static readonly START_WORKER_ELEMENT = 'startWorkerElement'; }