Compile fix
diff --git a/examples/pubsub/main.cc b/examples/pubsub/main.cc
index ce22cfa..6f7737e 100644
--- a/examples/pubsub/main.cc
+++ b/examples/pubsub/main.cc
@@ -79,8 +79,7 @@
 
   ss << FLAGS_server_host << ":" << FLAGS_server_port;
 
-  std::unique_ptr<grpc::Credentials> creds =
-      grpc::CredentialsFactory::GoogleDefaultCredentials();
+  std::unique_ptr<grpc::Credentials> creds = grpc::GoogleDefaultCredentials();
   std::shared_ptr<grpc::ChannelInterface> channel =
       grpc::CreateChannel(ss.str(), creds, grpc::ChannelArguments());