diff options
Diffstat (limited to 'include/grpcpp/impl/codegen/client_interceptor.h')
-rw-r--r-- | include/grpcpp/impl/codegen/client_interceptor.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/grpcpp/impl/codegen/client_interceptor.h b/include/grpcpp/impl/codegen/client_interceptor.h index 8f32814838..9922206815 100644 --- a/include/grpcpp/impl/codegen/client_interceptor.h +++ b/include/grpcpp/impl/codegen/client_interceptor.h @@ -55,17 +55,16 @@ class ClientRpcInfo { // Getter methods const char* method() { return method_; } - Channel* channel() { return channel_; } + ChannelInterface* channel() { return channel_; } grpc::ClientContext* client_context() { return ctx_; } private: ClientRpcInfo(grpc::ClientContext* ctx, const char* method, - grpc::Channel* channel) + grpc::ChannelInterface* channel) : ctx_(ctx), method_(method), channel_(channel) {} // Runs interceptor at pos \a pos. void RunInterceptor( - experimental::InterceptorBatchMethods* interceptor_methods, - unsigned int pos) { + experimental::InterceptorBatchMethods* interceptor_methods, size_t pos) { GPR_CODEGEN_ASSERT(pos < interceptors_.size()); interceptors_[pos]->Intercept(interceptor_methods); } @@ -83,7 +82,7 @@ class ClientRpcInfo { grpc::ClientContext* ctx_ = nullptr; const char* method_ = nullptr; - grpc::Channel* channel_ = nullptr; + grpc::ChannelInterface* channel_ = nullptr; std::vector<std::unique_ptr<experimental::Interceptor>> interceptors_; bool hijacked_ = false; int hijacked_interceptor_ = false; |