diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-27 21:04:56 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-27 21:04:56 -0700 |
commit | 89d56103eb9de65e148f1d839a686e591763d73e (patch) | |
tree | 79b02327d46c9e34afcace37c222e07cdbd83cc9 /src | |
parent | ee8d6a381adf3eaedf0c5d92aca7bd5b4b645de3 (diff) | |
parent | 730055d9628ca6d27e46d7c6716148a8d93bf95d (diff) |
Merge pull request #3104 from yang-g/create_channel
Create channel API change
Diffstat (limited to 'src')
-rw-r--r-- | src/cpp/client/create_channel.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpp/client/create_channel.cc b/src/cpp/client/create_channel.cc index 8c571cbbaa..1dac960017 100644 --- a/src/cpp/client/create_channel.cc +++ b/src/cpp/client/create_channel.cc @@ -44,6 +44,11 @@ namespace grpc { class ChannelArguments; std::shared_ptr<Channel> CreateChannel( + const grpc::string& target, const std::shared_ptr<Credentials>& creds) { + return CreateCustomChannel(target, creds, ChannelArguments()); +} + +std::shared_ptr<Channel> CreateCustomChannel( const grpc::string& target, const std::shared_ptr<Credentials>& creds, const ChannelArguments& args) { ChannelArguments cp_args = args; @@ -57,4 +62,5 @@ std::shared_ptr<Channel> CreateChannel( NULL, GRPC_STATUS_INVALID_ARGUMENT, "Invalid credentials.")); } + } // namespace grpc |