File tree Expand file tree Collapse file tree
branches/autosynth-iot/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 @@ -133,7 +133,7 @@ refs/heads/autosynth-datastore: 9acd400b484d6691a080c9152a331d88d24fefc1
133133refs/heads/autosynth-dialogflow: d7477419376eac9b6dcc7dbcede581152527351d
134134refs/heads/autosynth-errorreporting: 9891e73a56af7c097829ca7a521b0e862ba6af30
135135refs/heads/autosynth-firestore: ddb29f8ee445a938fc40be8227dea87b3f508ab3
136- refs/heads/autosynth-iot: 969bbeef18f004fd51fd46c5def1ae5c644cae3c
136+ refs/heads/autosynth-iot: 50a853325b306f27c46026e77976ebbfb7dc0106
137137refs/heads/autosynth-kms: dcc6e15d68759010c8735cc868135bd7e6c1cc5f
138138refs/heads/autosynth-language: 8972866b016473559702424205ce5569de47b34d
139139refs/heads/autosynth-os-login: daa910328b954bbe87068f684a3088ed910f1ddf
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