From fdaa7fed6acb00e1983a022eefa0ff8198022607 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Tue, 26 Nov 2024 18:08:52 +0000 Subject: [PATCH] [Examples] Remove grpcpp_admin dependency --- examples/cpp/otel/BUILD | 1 - examples/cpp/otel/util.cc | 2 -- 2 files changed, 3 deletions(-) diff --git a/examples/cpp/otel/BUILD b/examples/cpp/otel/BUILD index 2d7ba2c38f8fc..9e38890c4885e 100644 --- a/examples/cpp/otel/BUILD +++ b/examples/cpp/otel/BUILD @@ -27,7 +27,6 @@ cc_library( "//:grpc++", "//:grpc++_reflection", "//:grpc++_xds_server", - "//:grpcpp_admin", "//examples/protos:helloworld_cc_grpc", "@io_opentelemetry_cpp//sdk/src/metrics", ], diff --git a/examples/cpp/otel/util.cc b/examples/cpp/otel/util.cc index 6240ee7fffe4d..5b8a7dfc8ab71 100644 --- a/examples/cpp/otel/util.cc +++ b/examples/cpp/otel/util.cc @@ -23,7 +23,6 @@ #define HAVE_ABSEIL #endif -#include #include #include #include @@ -180,7 +179,6 @@ void RunXdsEnabledServer(uint16_t port) { // Register "service" as the instance through which we'll communicate with // clients. In this case it corresponds to an *synchronous* service. builder.RegisterService(&service); - grpc::AddAdminServices(&builder); // Finally assemble the server. std::unique_ptr server(builder.BuildAndStart()); std::cout << "Server listening on " << server_address << std::endl;