Skip to content

Commit

Permalink
[Examples] Remove grpcpp_admin dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yashykt committed Nov 26, 2024
1 parent 989fed6 commit fdaa7fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/cpp/otel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down
2 changes: 0 additions & 2 deletions examples/cpp/otel/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#define HAVE_ABSEIL
#endif

#include <grpcpp/ext/admin_services.h>
#include <grpcpp/ext/proto_server_reflection_plugin.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/health_check_service_interface.h>
Expand Down Expand Up @@ -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> server(builder.BuildAndStart());
std::cout << "Server listening on " << server_address << std::endl;
Expand Down

0 comments on commit fdaa7fe

Please sign in to comment.