Don't use legacy EDS-only flow for google-c2p resolver. (#26284)

pull/26304/head
Mark D. Roth 4 years ago committed by GitHub
parent 2bb20d25a4
commit dbde1a21dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc

@ -1100,7 +1100,7 @@ class XdsClusterResolverLbFactory : public LoadBalancingPolicyFactory {
GPR_ASSERT(uri.ok() && !uri->path().empty());
absl::string_view server_name = absl::StripPrefix(uri->path(), "/");
// Determine if it's an xds URI.
bool is_xds_uri = uri->scheme() == "xds";
bool is_xds_uri = uri->scheme() == "xds" || uri->scheme() == "google-c2p";
// Get XdsClient.
RefCountedPtr<XdsClient> xds_client =
XdsClient::GetFromChannelArgs(*args.args);

Loading…
Cancel
Save