From ac7ba7abd32004a1cbc0f78ff6d6cc4a3b11d6fd Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 19 Sep 2024 14:00:12 +0200 Subject: [PATCH] fix --- consumer/src/index.ts | 2 +- producer/ecosystem.config.example.cjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consumer/src/index.ts b/consumer/src/index.ts index f3895e4..3c466cb 100644 --- a/consumer/src/index.ts +++ b/consumer/src/index.ts @@ -55,7 +55,7 @@ async function processStreamEntry(data: Record) { const duration = Date.now() - start; - console.log('Entry processed in', duration, 'ms'); + // console.log('Entry processed in', duration, 'ms'); } catch (ex: any) { console.error('ERROR PROCESSING STREAM EVENT', ex.message); diff --git a/producer/ecosystem.config.example.cjs b/producer/ecosystem.config.example.cjs index cdd646d..bc47f0f 100644 --- a/producer/ecosystem.config.example.cjs +++ b/producer/ecosystem.config.example.cjs @@ -1,10 +1,10 @@ module.exports = { apps: [ { - name: 'Producer', + name: 'producer', port: '3000', exec_mode: 'cluster', - instances: '2', + instances: '1', script: './dist/broker/src/index.js', env: { PORT: "",