From ca693087d28e69a81972c5ac7a2859cf7f884857 Mon Sep 17 00:00:00 2001 From: sbriat Date: Mon, 24 Apr 2023 16:55:14 +0200 Subject: [PATCH] update broker handler --- src/modules/ad/ad.modules.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/ad/ad.modules.ts b/src/modules/ad/ad.modules.ts index bb8b761..7b98c89 100644 --- a/src/modules/ad/ad.modules.ts +++ b/src/modules/ad/ad.modules.ts @@ -18,10 +18,13 @@ import { AdMessagerController } from './adapters/primaries/ad-messager.controlle adCreated: { exchange: configService.get('RMQ_EXCHANGE'), routingKey: 'ad.created', + queue: `${configService.get( + 'RMQ_EXCHANGE', + )}-matcher-ad-created`, }, }, uri: configService.get('RMQ_URI'), - connectionInitOptions: { wait: true }, + connectionInitOptions: { wait: false }, enableControllerDiscovery: true, }), inject: [ConfigService],