Skip to content

Commit c395745

Browse files
anguillanneufchingor13
authored andcommitted
---
yaml --- r: 12927 b: refs/heads/autosynth-scheduler c: 50a8533 h: refs/heads/master i: 12925: 43eb5fb 12923: 34f0caf 12919: e2f2d0e 12911: 9bde26d 12895: 636c06b 12863: 0cc13a8 12799: 4e8752f
1 parent f355c51 commit c395745

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
@@ -138,7 +138,7 @@ refs/heads/autosynth-kms: dcc6e15d68759010c8735cc868135bd7e6c1cc5f
138138
refs/heads/autosynth-language: 8972866b016473559702424205ce5569de47b34d
139139
refs/heads/autosynth-os-login: daa910328b954bbe87068f684a3088ed910f1ddf
140140
refs/heads/autosynth-redis: 4c68cb0fbc599124e717ab3f24bd8a8a5d085ca9
141-
refs/heads/autosynth-scheduler: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
141+
refs/heads/autosynth-scheduler: 50a853325b306f27c46026e77976ebbfb7dc0106
142142
refs/heads/autosynth-securitycenter: 80dc94847b954c97a641519177c98dc8e9e9fbe1
143143
refs/heads/autosynth-spanner: 1804eb46dd34a05b47163758d376a7fac49188f1
144144
refs/heads/autosynth-speech: 631df42a628621fe42eb4974c9eb725b2fe8e473

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