aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pubsub/subscriber.cc
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-10 22:39:44 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-04-10 22:39:44 +0200
commit7a6d8fde095501016dc98f43299be2facc79f17e (patch)
treef88972d1f17e78920ee1228dee061878562dd27b /examples/pubsub/subscriber.cc
parentf0863b02270f1b95d5c8b9f3f962959e4cbbdd42 (diff)
parent046c6656c961bb65508d725edb9adc60f63e3424 (diff)
Merge branch 'master' of github.com:grpc/grpc into freebsd
Diffstat (limited to 'examples/pubsub/subscriber.cc')
-rw-r--r--examples/pubsub/subscriber.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/pubsub/subscriber.cc b/examples/pubsub/subscriber.cc
index 29f6635b7c..d9e0292ba0 100644
--- a/examples/pubsub/subscriber.cc
+++ b/examples/pubsub/subscriber.cc
@@ -49,12 +49,9 @@ namespace examples {
namespace pubsub {
Subscriber::Subscriber(std::shared_ptr<ChannelInterface> channel)
- : stub_(SubscriberService::NewStub(channel)) {
-}
+ : stub_(SubscriberService::NewStub(channel)) {}
-void Subscriber::Shutdown() {
- stub_.reset();
-}
+void Subscriber::Shutdown() { stub_.reset(); }
Status Subscriber::CreateSubscription(const grpc::string& topic,
const grpc::string& name) {