diff options
Diffstat (limited to 'include/grpcpp/impl/codegen/client_context.h')
-rw-r--r-- | include/grpcpp/impl/codegen/client_context.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/grpcpp/impl/codegen/client_context.h b/include/grpcpp/impl/codegen/client_context.h index 95462dfff3..59c61c4f0e 100644 --- a/include/grpcpp/impl/codegen/client_context.h +++ b/include/grpcpp/impl/codegen/client_context.h @@ -404,8 +404,13 @@ class ClientContext { void set_call(grpc_call* call, const std::shared_ptr<Channel>& channel); experimental::ClientRpcInfo* set_client_rpc_info( - experimental::ClientRpcInfo client_rpc_info) { - rpc_info_ = std::move(client_rpc_info); + const char* method, grpc::Channel* channel, + const std::vector< + std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>& + creators, + int interceptor_pos) { + rpc_info_ = experimental::ClientRpcInfo(this, method, channel); + rpc_info_.RegisterInterceptors(creators, interceptor_pos); return &rpc_info_; } |