aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/cpp/helloworld/greeter_client.cc
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-10-17 22:23:02 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-10-17 22:23:02 -0700
commit8c48a2a196e93f69e124464037563eb49a0341d5 (patch)
tree9f1964fe0f13d7d40ee940d10e86a50288ae587e /examples/cpp/helloworld/greeter_client.cc
parent3bb61d8917a506c8bbeadfa651f59ec37c74849f (diff)
Fixing cpp examples.
Diffstat (limited to 'examples/cpp/helloworld/greeter_client.cc')
-rw-r--r--examples/cpp/helloworld/greeter_client.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cpp/helloworld/greeter_client.cc b/examples/cpp/helloworld/greeter_client.cc
index 6cd8353a9f..bf3b63cb57 100644
--- a/examples/cpp/helloworld/greeter_client.cc
+++ b/examples/cpp/helloworld/greeter_client.cc
@@ -84,9 +84,9 @@ int main(int argc, char** argv) {
// Instantiate the client. It requires a channel, out of which the actual RPCs
// are created. This channel models a connection to an endpoint (in this case,
// localhost at port 50051). We indicate that the channel isn't authenticated
- // (use of InsecureCredentials()).
- GreeterClient greeter(
- grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials()));
+ // (use of InsecureChannelCredentials()).
+ GreeterClient greeter(grpc::CreateChannel(
+ "localhost:50051", grpc::InsecureChannelCredentials()));
std::string user("world");
std::string reply = greeter.SayHello(user);
std::cout << "Greeter received: " << reply << std::endl;