feat(microservices): Add producer reference to KafkaContext

This commit is contained in:
Ondřej Švanda
2022-09-12 10:10:28 +02:00
parent ec197c96e2
commit e98d3372be
3 changed files with 29 additions and 3 deletions

View File

@@ -168,6 +168,7 @@ export class ServerKafka extends Server implements CustomTransportStrategy {
payload.topic,
this.consumer,
payload.heartbeat,
this.producer,
]);
const handler = this.getHandlerByPattern(packet.pattern);
// if the correlation id or reply topic is not set