File tree Expand file tree Collapse file tree
branches/autosynth-trace/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 @@ -144,7 +144,7 @@ refs/heads/autosynth-spanner: 9bff86d057df31e04c76d72865e8e073ac5794fb
144144refs/heads/autosynth-speech: 75d6c62a9d07d3a3642980502a25d07fbde0f232
145145refs/heads/autosynth-tasks: b0cdb991f3f75345151a3f68db1aab273dfc069b
146146refs/heads/autosynth-texttospeech: 2dcc5dc22be0f456caa1b6a8a4bcdace2641239c
147- refs/heads/autosynth-trace: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
147+ refs/heads/autosynth-trace: 50a853325b306f27c46026e77976ebbfb7dc0106
148148refs/heads/autosynth-websecurityscanner: d4febbffb6c648b74faec62fe90e20adadc9a7d3
149149refs/heads/bigquerystorage: 06db74d123d7f8a3ef48755c2fcabed09faf8e64
150150refs/heads/elharo-patch-1: ce159ef828d3c545991ff78e7b6e0d912a9453e9
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