File tree Expand file tree Collapse file tree
branches/autosynth-kms/google-cloud-examples/src/test/java/com/google/cloud/examples/pubsub/snippets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ refs/heads/autosynth-dialogflow: 73974cc32e5212aec0126472e0bc1442886fedaf
132132refs/heads/autosynth-errorreporting: effe8001d110ad584187b30aafc473db0dd4a15f
133133refs/heads/autosynth-firestore: e79eeb26930dfae4439424ad2fda5874eeca54c8
134134refs/heads/autosynth-iot: 044be280805a59e06d09658688c9ee474a9815ad
135- refs/heads/autosynth-kms: 080b6be2af3922c8c2a2ff8702b3bb49f7622972
135+ refs/heads/autosynth-kms: 661e461ee6ccf957bb8741cb807c6f63be4ce69f
136136refs/heads/autosynth-language: e73905aa7672afa47240e65b25c087207f4594f9
137137refs/heads/autosynth-os-login: 123ba209c5769d0ee067e0ce5848bec13b42a4f4
138138refs/heads/autosynth-redis: 6bedce4d7c7c6ca6a22e83ad1780e08fdc565a9e
Original file line number Diff line number Diff line change 2727import com .google .cloud .pubsub .v1 .Publisher ;
2828import com .google .cloud .pubsub .v1 .SubscriptionAdminClient ;
2929import com .google .cloud .pubsub .v1 .TopicAdminClient ;
30+ import com .google .common .util .concurrent .MoreExecutors ;
3031import com .google .pubsub .v1 .ProjectSubscriptionName ;
3132import com .google .pubsub .v1 .ProjectTopicName ;
3233import com .google .pubsub .v1 .PubsubMessage ;
@@ -92,7 +93,8 @@ public void onSuccess(String messageId) {
9293 public void onFailure (Throwable t ) {
9394 done .setException (t );
9495 }
95- });
96+ },
97+ MoreExecutors .directExecutor ());
9698 done .get ();
9799 } finally {
98100 if (publisher != null ) {
You can’t perform that action at this time.
0 commit comments