update broker handler

This commit is contained in:
sbriat 2023-04-24 16:55:14 +02:00
parent e07e19261e
commit ca693087d2
1 changed files with 4 additions and 1 deletions

View File

@ -18,10 +18,13 @@ import { AdMessagerController } from './adapters/primaries/ad-messager.controlle
adCreated: { adCreated: {
exchange: configService.get<string>('RMQ_EXCHANGE'), exchange: configService.get<string>('RMQ_EXCHANGE'),
routingKey: 'ad.created', routingKey: 'ad.created',
queue: `${configService.get<string>(
'RMQ_EXCHANGE',
)}-matcher-ad-created`,
}, },
}, },
uri: configService.get<string>('RMQ_URI'), uri: configService.get<string>('RMQ_URI'),
connectionInitOptions: { wait: true }, connectionInitOptions: { wait: false },
enableControllerDiscovery: true, enableControllerDiscovery: true,
}), }),
inject: [ConfigService], inject: [ConfigService],