Skip to content

Commit 0c201b8

Browse files
committed
another update
1 parent e33f930 commit 0c201b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flexible/pubsub/src/main/java/com/example/flexible/pubsub/PubSubPublish.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
3939
String topicId = System.getenv("PUBSUB_TOPIC");
4040
// create a publisher on the topic
4141
if (publisher == null) {
42-
publisher = Publisher.defaultBuilder(
43-
TopicName.create(ServiceOptions.getDefaultProjectId(), topicId))
42+
publisher = Publisher.newBuilder(
43+
TopicName.of(ServiceOptions.getDefaultProjectId(), topicId))
4444
.build();
4545
}
4646
// construct a pubsub message from the payload

0 commit comments

Comments
 (0)