diff options
author | yang-g <yangg@google.com> | 2015-07-07 17:47:31 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-07-07 17:47:31 -0700 |
commit | 85c04f938f242031cf819f626da21ac597ccd6a6 (patch) | |
tree | d351513c484ed6f2df9c7b880ae286f1badf0e99 /include/grpc++/client_context.h | |
parent | e114a017203b1f42257154bf23e764b215176eff (diff) |
resolve comments
Diffstat (limited to 'include/grpc++/client_context.h')
-rw-r--r-- | include/grpc++/client_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc++/client_context.h b/include/grpc++/client_context.h index 3bf5edc6c0..26bd7c830f 100644 --- a/include/grpc++/client_context.h +++ b/include/grpc++/client_context.h @@ -108,7 +108,7 @@ class ClientContext { creds_ = creds; } - std::unique_ptr<const AuthContext> auth_context() const; + std::shared_ptr<const AuthContext> auth_context() const; void TryCancel(); @@ -157,6 +157,7 @@ class ClientContext { gpr_timespec deadline_; grpc::string authority_; std::shared_ptr<Credentials> creds_; + mutable std::shared_ptr<const AuthContext> auth_context_; std::multimap<grpc::string, grpc::string> send_initial_metadata_; std::multimap<grpc::string, grpc::string> recv_initial_metadata_; std::multimap<grpc::string, grpc::string> trailing_metadata_; |