fix route_guide

pull/3109/head
yang-g 10 years ago
parent d36da04a55
commit de36eb69be
  1. 10
      cpp/route_guide/route_guide_client.cc
  2. 2
      cpp/route_guide/route_guide_server.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_);
}

@ -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"

Loading…
Cancel
Save