Use the same channel for ADS and LRS clients

This commit is contained in:
Michael Lumish 2020-08-27 18:14:03 -07:00
parent 82037fcdaf
commit 597fc1c57b
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export interface ChannelOptions {
'grpc.max_send_message_length'?: number;
'grpc.max_receive_message_length'?: number;
'grpc.enable_http_proxy'?: number;
[key: string]: string | number | undefined;
[key: string]: any;
}
/**

View File

@ -816,7 +816,7 @@ export class XdsClient {
this.lrsClient = new protoDefinitions.envoy.service.load_stats.v2.LoadReportingService(
bootstrapInfo.xdsServers[0].serverUri,
createGoogleDefaultCredentials(),
channelArgs
{channelOverride: this.adsClient.getChannel()}
);
this.maybeStartLrsStream();
},