aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pubsub/publisher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pubsub/publisher.cc')
-rw-r--r--examples/pubsub/publisher.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/pubsub/publisher.cc b/examples/pubsub/publisher.cc
index 308f9a77e5..458050af73 100644
--- a/examples/pubsub/publisher.cc
+++ b/examples/pubsub/publisher.cc
@@ -51,12 +51,9 @@ namespace examples {
namespace pubsub {
Publisher::Publisher(std::shared_ptr<ChannelInterface> channel)
- : stub_(PublisherService::NewStub(channel)) {
-}
+ : stub_(PublisherService::NewStub(channel)) {}
-void Publisher::Shutdown() {
- stub_.reset();
-}
+void Publisher::Shutdown() { stub_.reset(); }
Status Publisher::CreateTopic(const grpc::string& topic) {
Topic request;