Skip to content

Commit ffbb5bb

Browse files
anguillanneufchingor13
authored andcommitted
---
yaml --- r: 12847 b: refs/heads/autosynth-bigtable c: 50a8533 h: refs/heads/master i: 12845: cfae015 12843: f703948 12839: 8dab6ef 12831: a24acc1
1 parent 86632c9 commit ffbb5bb

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
@@ -126,7 +126,7 @@ refs/heads/autosynth-asset: af3772eb76acbfc401f7c3f9310f09f2b0e17602
126126
refs/heads/autosynth-automl: d4315b3596bac160e3439432c54435f44b09953e
127127
refs/heads/autosynth-bigquerydatatransfer: 2a9f3938237f85a8919602d74011326580ff387f
128128
refs/heads/autosynth-bigquerystorage: 99aee05df348f39d98b6fb23c292006f1d2a6c28
129-
refs/heads/autosynth-bigtable: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
129+
refs/heads/autosynth-bigtable: 50a853325b306f27c46026e77976ebbfb7dc0106
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
131131
refs/heads/autosynth-containeranalysis: 781fdb430a60f9a6491f116e31e4e10118157bdb
132132
refs/heads/autosynth-datastore: af1fb76aa3eee02fe6f31f8fa1c72a4f048d149b

branches/autosynth-bigtable/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)