|
15 | 15 | *
|
16 | 16 | */
|
17 | 17 |
|
18 |
| -import { experimental, logVerbosity, status as Status, Metadata, connectivityState, ChannelOptions, ChannelCredentials } from "@grpc/grpc-js"; |
| 18 | +import { experimental, logVerbosity, status as Status, Metadata, connectivityState, ChannelOptions } from "@grpc/grpc-js"; |
19 | 19 | import { validateXdsServerConfig, XdsServerConfig } from "./xds-bootstrap";
|
20 | 20 | import { getSingletonXdsClient, XdsClient, XdsClusterDropStats, XdsClusterLocalityStats } from "./xds-client";
|
21 | 21 | import { LocalityEndpoint } from "./load-balancer-priority";
|
@@ -211,13 +211,13 @@ class XdsClusterImplBalancer implements LoadBalancer {
|
211 | 211 | private xdsClient: XdsClient | null = null;
|
212 | 212 | private latestClusterConfig: ClusterConfig | null = null;
|
213 | 213 |
|
214 |
| - constructor(private readonly channelControlHelper: ChannelControlHelper, credentials: ChannelCredentials, options: ChannelOptions) { |
| 214 | + constructor(private readonly channelControlHelper: ChannelControlHelper, options: ChannelOptions) { |
215 | 215 | this.childBalancer = new ChildLoadBalancerHandler(createChildChannelControlHelper(channelControlHelper, {
|
216 |
| - createSubchannel: (subchannelAddress, subchannelArgs, credentialsOverride) => { |
| 216 | + createSubchannel: (subchannelAddress, subchannelArgs) => { |
217 | 217 | if (!this.xdsClient || !this.latestConfig || !this.lastestEndpointList || !this.latestClusterConfig) {
|
218 | 218 | throw new Error('xds_cluster_impl: invalid state: createSubchannel called with xdsClient or latestConfig not populated');
|
219 | 219 | }
|
220 |
| - const wrapperChild = channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs, credentialsOverride); |
| 220 | + const wrapperChild = channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); |
221 | 221 | let locality: Locality__Output | null = null;
|
222 | 222 | for (const endpoint of this.lastestEndpointList) {
|
223 | 223 | if (endpointHasAddress(endpoint, subchannelAddress)) {
|
@@ -248,7 +248,7 @@ class XdsClusterImplBalancer implements LoadBalancer {
|
248 | 248 | channelControlHelper.updateState(connectivityState, picker);
|
249 | 249 | }
|
250 | 250 | }
|
251 |
| - }), credentials, options); |
| 251 | + }), options); |
252 | 252 | }
|
253 | 253 | updateAddressList(endpointList: Endpoint[], lbConfig: TypedLoadBalancingConfig, attributes: { [key: string]: unknown; }): void {
|
254 | 254 | if (!(lbConfig instanceof XdsClusterImplLoadBalancingConfig)) {
|
|
0 commit comments