diff options
author | yang-g <yangg@google.com> | 2015-08-28 14:17:33 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-08-28 14:17:33 -0700 |
commit | 75d04da2e4d31753c9d8a8bb46a7260e3e44484b (patch) | |
tree | 1428ab2e534eb05fac858bf659f64ad57c464a3c /examples | |
parent | 623860f7d9335fc6eb147d7f6606782d4bed0d77 (diff) |
sync up with CreateChannel API change
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cpp/helloworld/greeter_async_client.cc | 2 | ||||
-rw-r--r-- | examples/cpp/helloworld/greeter_client.cc | 3 | ||||
-rw-r--r-- | examples/cpp/route_guide/route_guide_client.cc | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/examples/cpp/helloworld/greeter_async_client.cc b/examples/cpp/helloworld/greeter_async_client.cc index d99f89b135..bc95c54e06 100644 --- a/examples/cpp/helloworld/greeter_async_client.cc +++ b/examples/cpp/helloworld/greeter_async_client.cc @@ -89,7 +89,7 @@ class GreeterClient { int main(int argc, char** argv) { GreeterClient greeter(grpc::CreateChannel( - "localhost:50051", grpc::InsecureCredentials(), ChannelArguments())); + "localhost:50051", grpc::InsecureCredentials())); std::string user("world"); std::string reply = greeter.SayHello(user); std::cout << "Greeter received: " << reply << std::endl; diff --git a/examples/cpp/helloworld/greeter_client.cc b/examples/cpp/helloworld/greeter_client.cc index dd0358ac95..2b542cd834 100644 --- a/examples/cpp/helloworld/greeter_client.cc +++ b/examples/cpp/helloworld/greeter_client.cc @@ -75,8 +75,7 @@ class GreeterClient { int main(int argc, char** argv) { GreeterClient greeter( - grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials(), - ChannelArguments())); + grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials())); std::string user("world"); std::string reply = greeter.SayHello(user); std::cout << "Greeter received: " << reply << std::endl; diff --git a/examples/cpp/route_guide/route_guide_client.cc b/examples/cpp/route_guide/route_guide_client.cc index 814def27f3..fe998079c4 100644 --- a/examples/cpp/route_guide/route_guide_client.cc +++ b/examples/cpp/route_guide/route_guide_client.cc @@ -235,8 +235,7 @@ int main(int argc, char** argv) { // Expect only arg: --db_path=path/to/route_guide_db.json. std::string db = examples::GetDbFileContent(argc, argv); RouteGuideClient guide( - grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials(), - ChannelArguments()), + grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials()), db); std::cout << "-------------- GetFeature --------------" << std::endl; |