From c071cfa9e883eeb2209b7890fbe4178bdf44b868 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Mon, 13 Jul 2020 09:22:20 -0700 Subject: [PATCH] Remove xds-experimental URI scheme. --- .../client_channel/resolver/xds/xds_resolver.cc | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc b/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc index d3b79e39e2c..de00d4fafe4 100644 --- a/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +++ b/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc @@ -144,8 +144,6 @@ void XdsResolver::StartLocked() { class XdsResolverFactory : public ResolverFactory { public: - explicit XdsResolverFactory(const char* scheme) : scheme_(scheme) {} - bool IsValidUri(const grpc_uri* uri) const override { if (GPR_UNLIKELY(0 != strcmp(uri->authority, ""))) { gpr_log(GPR_ERROR, "URI authority not supported"); @@ -159,26 +157,16 @@ class XdsResolverFactory : public ResolverFactory { return MakeOrphanable(std::move(args)); } - const char* scheme() const override { return scheme_; } - - private: - const char* scheme_; + const char* scheme() const override { return "xds"; } }; -constexpr char kXdsScheme[] = "xds"; -constexpr char kXdsExperimentalScheme[] = "xds-experimental"; - } // namespace } // namespace grpc_core void grpc_resolver_xds_init() { grpc_core::ResolverRegistry::Builder::RegisterResolverFactory( - absl::make_unique(grpc_core::kXdsScheme)); - // TODO(roth): Remov this in the 1.31 release. - grpc_core::ResolverRegistry::Builder::RegisterResolverFactory( - absl::make_unique( - grpc_core::kXdsExperimentalScheme)); + absl::make_unique()); } void grpc_resolver_xds_shutdown() {}