From a00a06d5bd09150b7e9d6ec8e8c3d3d7f5ce9d89 Mon Sep 17 00:00:00 2001 From: Tao He Date: Sun, 11 Oct 2020 17:19:46 +0800 Subject: [PATCH] Remove unused comment code. Signed-off-by: Tao He --- src/Client.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Client.cpp b/src/Client.cpp index 50ea923..c8e354f 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -28,7 +28,6 @@ #include "etcd/v3/AsyncTxnAction.hpp" #include -#include using grpc::Channel; @@ -138,14 +137,8 @@ etcd::Client::Client(std::string const & address, throw std::invalid_argument("Etcd authentication failed: " + token_or_message); } this->auth_token = token_or_message; - // using interceptor_factory_t = grpc::experimental::ClientInterceptorFactoryInterface; - // using interceptor_factory_ptr_t = std::unique_ptr; - // std::vector interceptor_creators; - // interceptor_creators.emplace_back(new etcd::detail::AuthInterceptorFactory(token_or_message)); - // reset the channel with the authentication interceptor. - // this->channel = grpc::experimental::CreateCustomChannelWithInterceptors( - // addresses, creds, grpc_args, std::move(interceptor_creators)); + // setup stubs kvServiceStub = KV::NewStub(this->channel); watchServiceStub= Watch::NewStub(this->channel); leaseServiceStub= Lease::NewStub(this->channel);