update helloworld
diff --git a/cpp/helloworld/greeter_client.cc b/cpp/helloworld/greeter_client.cc
index 4776cf9..c0aec16 100644
--- a/cpp/helloworld/greeter_client.cc
+++ b/cpp/helloworld/greeter_client.cc
@@ -71,15 +71,11 @@
}
}
- void Shutdown() { stub_.reset(); }
-
private:
std::unique_ptr<Greeter::Stub> stub_;
};
int main(int argc, char** argv) {
- grpc_init();
-
GreeterClient greeter(
grpc::CreateChannel("localhost:50051", grpc::InsecureCredentials(),
ChannelArguments()));
@@ -87,7 +83,5 @@
std::string reply = greeter.SayHello(user);
std::cout << "Greeter received: " << reply << std::endl;
- greeter.Shutdown();
-
- grpc_shutdown();
+ return 0;
}