mirror of https://github.com/grpc/grpc-node.git
Use the same channel for ADS and LRS clients
This commit is contained in:
parent
82037fcdaf
commit
597fc1c57b
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue