Skip to content

Commit

Permalink
Merge pull request #5161 from mkaufmaner/5126-change-kafka-visibility
Browse files Browse the repository at this point in the history
fix(microservices): Changed visibility of Kafka variables for extension
  • Loading branch information
kamilmysliwiec committed Jul 30, 2020
2 parents b938129 + b9007dd commit 1ade11e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/microservices/client/client-kafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
9 changes: 5 additions & 4 deletions packages/microservices/server/server-kafka.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ade11e

Please sign in to comment.