aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-08-25 15:16:44 -0700
committerGravatar yang-g <yangg@google.com>2015-08-25 15:16:44 -0700
commitde36eb69be02d384ec2d03b93a1bb8e44448f361 (patch)
tree5aacef82eec3a76b5f58fbe8bee1989e63654223
parentd36da04a55df317febe419f53a2b97aa53cb143f (diff)
fix route_guide
-rw-r--r--cpp/route_guide/route_guide_client.cc10
-rw-r--r--cpp/route_guide/route_guide_server.cc2
2 files changed, 3 insertions, 9 deletions
diff --git a/cpp/route_guide/route_guide_client.cc b/cpp/route_guide/route_guide_client.cc
index 734ea9fb8a..814def27f3 100644
--- a/cpp/route_guide/route_guide_client.cc
+++ b/cpp/route_guide/route_guide_client.cc
@@ -39,18 +39,15 @@
#include <thread>
#include <grpc/grpc.h>
-#include <grpc++/channel_arguments.h>
-#include <grpc++/channel_interface.h>
+#include <grpc++/channel.h>
#include <grpc++/client_context.h>
#include <grpc++/create_channel.h>
#include <grpc++/credentials.h>
-#include <grpc++/status.h>
-#include <grpc++/stream.h>
#include "helper.h"
#include "route_guide.grpc.pb.h"
+using grpc::Channel;
using grpc::ChannelArguments;
-using grpc::ChannelInterface;
using grpc::ClientContext;
using grpc::ClientReader;
using grpc::ClientReaderWriter;
@@ -88,8 +85,7 @@ RouteNote MakeRouteNote(const std::string& message,
class RouteGuideClient {
public:
- RouteGuideClient(std::shared_ptr<ChannelInterface> channel,
- const std::string& db)
+ RouteGuideClient(std::shared_ptr<Channel> channel, const std::string& db)
: stub_(RouteGuide::NewStub(channel)) {
examples::ParseDb(db, &feature_list_);
}
diff --git a/cpp/route_guide/route_guide_server.cc b/cpp/route_guide/route_guide_server.cc
index 8a0ea26132..b37539299a 100644
--- a/cpp/route_guide/route_guide_server.cc
+++ b/cpp/route_guide/route_guide_server.cc
@@ -43,8 +43,6 @@
#include <grpc++/server_builder.h>
#include <grpc++/server_context.h>
#include <grpc++/server_credentials.h>
-#include <grpc++/status.h>
-#include <grpc++/stream.h>
#include "helper.h"
#include "route_guide.grpc.pb.h"