Skip to content

Commit

Permalink
another update
Browse files Browse the repository at this point in the history
  • Loading branch information
jabubake committed Nov 22, 2017
1 parent e33f930 commit 0c201b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
String topicId = System.getenv("PUBSUB_TOPIC");
// create a publisher on the topic
if (publisher == null) {
publisher = Publisher.defaultBuilder(
TopicName.create(ServiceOptions.getDefaultProjectId(), topicId))
publisher = Publisher.newBuilder(
TopicName.of(ServiceOptions.getDefaultProjectId(), topicId))
.build();
}
// construct a pubsub message from the payload
Expand Down

0 comments on commit 0c201b8

Please sign in to comment.