Merge branch 'master' of https://github.com/nestjs/nest; branch '5603-feat-kafkaclient-kafkaserver-naming-conventions' of https://github.com/smhmayboudi/nest into smhmayboudi-5603-feat-kafkaclient-kafkaserver-naming-conventions

This commit is contained in:
Kamil Myśliwiec
2020-11-02 10:57:00 +01:00
4 changed files with 6 additions and 4 deletions

View File

@@ -56,8 +56,8 @@ export class ServerKafka extends Server implements CustomTransportStrategy {
// append a unique id to the clientId and groupId
// so they don't collide with a microservices client
this.clientId =
(clientOptions.clientId || KAFKA_DEFAULT_CLIENT) + '-server';
this.groupId = (consumerOptions.groupId || KAFKA_DEFAULT_GROUP) + '-server';
(clientOptions.clientId || KAFKA_DEFAULT_CLIENT) + (clientOptions.clientIdPostfix || '-server');
this.groupId = (consumerOptions.groupId || KAFKA_DEFAULT_GROUP) + (clientOptions.clientIdPostfix || '-server');
kafkaPackage = this.loadPackage('kafkajs', ServerKafka.name, () =>
require('kafkajs'),