Skip to content

Commit 8a3379c

Browse files
anguillanneufchingor13
authored andcommitted
---
yaml --- r: 15733 b: refs/heads/autosynth-dialogflow c: 50a8533 h: refs/heads/master i: 15731: ea0a369
1 parent 80b30c3 commit 8a3379c

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
@@ -130,7 +130,7 @@ refs/heads/autosynth-bigtable: 2fbcb15847e0e89e79d6dc07420e28d7dfcea894
130130
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
131131
refs/heads/autosynth-containeranalysis: 039ca5b8db725c76c16a965ff26b2774322b8ef8
132132
refs/heads/autosynth-datastore: 9acd400b484d6691a080c9152a331d88d24fefc1
133-
refs/heads/autosynth-dialogflow: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
133+
refs/heads/autosynth-dialogflow: 50a853325b306f27c46026e77976ebbfb7dc0106
134134
refs/heads/autosynth-errorreporting: 3d0566d6bebcc187f148bbed463b5a8e75b1edf6
135135
refs/heads/autosynth-firestore: 92b27fbc8855c9902168695abb0a8f1f433b750b
136136
refs/heads/autosynth-iot: 9d732be07d99843d8cb53d34ec0837328a807fce

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