Skip to content

Commit f13ec83

Browse files
author
chenyumic
authored
---
yaml --- r: 9621 b: refs/heads/michaelawyu-patch-1 c: 44849f3 h: refs/heads/master i: 9619: d4286d2
1 parent 52c0b92 commit f13ec83

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ refs/tags/v0.45.0: 4b4eb52d0823f5335cb8acf54a88bae199e013ae
9797
refs/tags/v0.46.0: 40dfc83a11b2cf2c21bf0f5a7b1e47087cbf0259
9898
refs/heads/proto-grpc-refactoring-rollback: 6094a5b7427538fde31e25bf028bc91a4d9769ab
9999
refs/heads/alixhami-patch-1: 277eebc2d3abd73fa376a1d6f39fcb93a9f0335d
100-
refs/heads/michaelawyu-patch-1: f1ac84a429f163688fcd32ed2179f708456fbabe
100+
refs/heads/michaelawyu-patch-1: 44849f3fcbfec21bc0c047fbea5b3fad6ee3f92a

branches/michaelawyu-patch-1/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static void publishMessagesWithErrorHandler() throws Exception {
9797
ApiFuture<String> future = publisher.publish(pubsubMessage);
9898

9999
// Add an asynchronous callback to handle success / failure
100-
ApiFuture.addCallback(future, newApiFutureCallback<String>()) {
100+
ApiFuture.addCallback(future, new ApiFutureCallback<String>() {
101101

102102
@Override
103103
public void onFailure(Throwable throwable) {
@@ -115,7 +115,7 @@ public void onSuccess(String messageId) {
115115
// Once published, returns server-assigned message ids (unique within the topic)
116116
System.out.println(messageId);
117117
}
118-
}
118+
});
119119
}
120120
} finally {
121121
if (publisher != null) {

0 commit comments

Comments
 (0)