mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
chore(): resolve merge conflicts
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
import { KafkaContext } from '../ctx-host';
|
||||
import { KafkaHeaders, Transport } from '../enums';
|
||||
import {
|
||||
BrokersFunction,
|
||||
Consumer,
|
||||
ConsumerConfig,
|
||||
EachMessagePayload,
|
||||
@@ -38,7 +39,7 @@ export class ServerKafka extends Server implements CustomTransportStrategy {
|
||||
protected consumer: Consumer = null;
|
||||
protected producer: Producer = null;
|
||||
|
||||
protected brokers: string[];
|
||||
protected brokers: string[] | BrokersFunction;
|
||||
protected clientId: string;
|
||||
protected groupId: string;
|
||||
|
||||
@@ -55,8 +56,11 @@ 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'),
|
||||
|
||||
Reference in New Issue
Block a user