Skip to content
Snippets Groups Projects
Commit d34c690e authored by Chen Wang's avatar Chen Wang
Browse files

delete using grpc::

parent c6fdcae0
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "examples/tips/client.h" #include "examples/tips/client.h"
using grpc::ClientContext;
using tech::pubsub::Topic; using tech::pubsub::Topic;
using tech::pubsub::PublisherService; using tech::pubsub::PublisherService;
...@@ -43,7 +42,7 @@ namespace grpc { ...@@ -43,7 +42,7 @@ namespace grpc {
namespace examples { namespace examples {
namespace tips { namespace tips {
Client::Client(std::shared_ptr<grpc::ChannelInterface> channel) Client::Client(std::shared_ptr<ChannelInterface> channel)
: stub_(PublisherService::NewStub(channel)) { : stub_(PublisherService::NewStub(channel)) {
} }
...@@ -51,7 +50,7 @@ Status Client::CreateTopic(grpc::string topic) { ...@@ -51,7 +50,7 @@ Status Client::CreateTopic(grpc::string topic) {
Topic request; Topic request;
Topic response; Topic response;
request.set_name(topic); request.set_name(topic);
grpc::ClientContext context; ClientContext context;
return stub_->CreateTopic(&context, request, &response); return stub_->CreateTopic(&context, request, &response);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment