Skip to content

Commit 9099a61

Browse files
anguillanneufchingor13
authored andcommitted
---
yaml --- r: 11449 b: refs/heads/autosynth-compute c: 50a8533 h: refs/heads/master i: 11447: 74c4ff4
1 parent 64299a7 commit 9099a61

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ refs/tags/v0.64.0: 456e8fbd129deced3ca025f239a2d8a82bde1d0a
112112
refs/tags/v0.65.0: 10939381ffe0b8da32db4fe3087c86e3aa7f3e55
113113
refs/tags/v0.66.0: ed6a3f57cbdaa20339a1995f7d7d53b172a5b8ef
114114
refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115-
refs/heads/autosynth-compute: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
115+
refs/heads/autosynth-compute: 50a853325b306f27c46026e77976ebbfb7dc0106
116116
refs/heads/autosynth-container: f28d7fcb71c4386965c6177a70debcde56c7ce4b
117117
refs/heads/autosynth-dataproc: 26b0bac0a5713f50e2f43d45fb3583391ffb185a
118118
refs/heads/autosynth-monitoring: 2cb98362409ff765ae26032b64bc84191cdc6dda

branches/autosynth-compute/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.google.api.gax.rpc.ApiException;
2323
import com.google.cloud.pubsub.v1.Publisher;
2424
import com.google.cloud.pubsub.v1.TopicAdminClient;
25+
import com.google.common.util.concurrent.MoreExecutors;
2526
import com.google.protobuf.ByteString;
2627
import com.google.pubsub.v1.ProjectTopicName;
2728
import com.google.pubsub.v1.PubsubMessage;
@@ -120,7 +121,8 @@ public void onSuccess(String messageId) {
120121
// Once published, returns server-assigned message ids (unique within the topic)
121122
System.out.println(messageId);
122123
}
123-
});
124+
},
125+
MoreExecutors.directExecutor());
124126
}
125127
} finally {
126128
if (publisher != null) {

0 commit comments

Comments
 (0)