File tree Expand file tree Collapse file tree
branches/autosynth-spanner/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ refs/heads/autosynth-os-login: daa910328b954bbe87068f684a3088ed910f1ddf
140140refs/heads/autosynth-redis: 4c68cb0fbc599124e717ab3f24bd8a8a5d085ca9
141141refs/heads/autosynth-scheduler: 2f0fe714a8541dc72f88b45bddd8748e5f21cf29
142142refs/heads/autosynth-securitycenter: 8e95447ccb176c3648880ee0cb926cd1f4065156
143- refs/heads/autosynth-spanner: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
143+ refs/heads/autosynth-spanner: 50a853325b306f27c46026e77976ebbfb7dc0106
144144refs/heads/autosynth-speech: 631df42a628621fe42eb4974c9eb725b2fe8e473
145145refs/heads/autosynth-tasks: afc9f4da54964dea5e7f3a9b164db282fc35db5c
146146refs/heads/autosynth-texttospeech: a447278ab2ec3975aab3b641549c6780eac0a07a
Original file line number Diff line number Diff line change 2222import com .google .api .gax .rpc .ApiException ;
2323import com .google .cloud .pubsub .v1 .Publisher ;
2424import com .google .cloud .pubsub .v1 .TopicAdminClient ;
25+ import com .google .common .util .concurrent .MoreExecutors ;
2526import com .google .protobuf .ByteString ;
2627import com .google .pubsub .v1 .ProjectTopicName ;
2728import 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 ) {
You can’t perform that action at this time.
0 commit comments