aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pubsub
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-05-14 11:51:07 -0700
committerGravatar Yang Gao <yangg@google.com>2015-05-14 11:51:07 -0700
commita89389283f504f989a08058d6a2af2c2217dbfcb (patch)
treee5554c5bd0a8244b03b705d68f7bb206413ac03b /examples/pubsub
parente02c1482716466ccc5fa2dab8a632dee1020e5d1 (diff)
support per call credentials in c++
Diffstat (limited to 'examples/pubsub')
-rw-r--r--examples/pubsub/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pubsub/main.cc b/examples/pubsub/main.cc
index 68620e64c5..b1898f18d9 100644
--- a/examples/pubsub/main.cc
+++ b/examples/pubsub/main.cc
@@ -71,7 +71,7 @@ int main(int argc, char** argv) {
ss << FLAGS_server_host << ":" << FLAGS_server_port;
- std::unique_ptr<grpc::Credentials> creds = grpc::GoogleDefaultCredentials();
+ std::shared_ptr<grpc::Credentials> creds = grpc::GoogleDefaultCredentials();
std::shared_ptr<grpc::ChannelInterface> channel =
grpc::CreateChannel(ss.str(), creds, grpc::ChannelArguments());