fix(microservices): Changed visibility of Kafka variables for extension

This commit is contained in:
Michael Kaufman
2020-07-29 11:51:29 -04:00
parent 50c709c4d5
commit b9007dd93f
2 changed files with 10 additions and 9 deletions

View File

@@ -43,13 +43,13 @@ export class ClientKafka extends ClientProxy {
protected client: Kafka = null;
protected consumer: Consumer = null;
protected producer: Producer = null;
protected readonly logger = new Logger(ClientKafka.name);
protected readonly responsePatterns: string[] = [];
protected logger = new Logger(ClientKafka.name);
protected responsePatterns: string[] = [];
protected consumerAssignments: { [key: string]: number[] } = {};
private readonly brokers: string[];
private readonly clientId: string;
private readonly groupId: string;
protected brokers: string[];
protected clientId: string;
protected groupId: string;
constructor(protected readonly options: KafkaOptions['options']) {
super();

View File

@@ -33,13 +33,14 @@ let kafkaPackage: any = {};
export class ServerKafka extends Server implements CustomTransportStrategy {
public readonly transportId = Transport.KAFKA;
protected readonly logger = new Logger(ServerKafka.name);
protected logger = new Logger(ServerKafka.name);
protected client: Kafka = null;
protected consumer: Consumer = null;
protected producer: Producer = null;
private readonly brokers: string[];
private readonly clientId: string;
private readonly groupId: string;
protected brokers: string[];
protected clientId: string;
protected groupId: string;
constructor(private readonly options: KafkaOptions['options']) {
super();