Skip to content

Commit a969294

Browse files
authored
---
yaml --- r: 8093 b: refs/heads/tswast-patch-1 c: 0fbd82e h: refs/heads/master i: 8091: 50af965
1 parent fef15c8 commit a969294

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

  • branches/tswast-patch-1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: b49ace4ac22b648844b2fb7be57ecaba1b3ee082
60+
refs/heads/tswast-patch-1: 0fbd82ed8695cb2f30d1757ad7775abc35f5708f
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Publisher.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616

1717
package com.google.cloud.pubsub.spi.v1;
1818

19-
import com.google.api.gax.batching.BatchingSettings;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
21+
import com.google.api.core.SettableApiFuture;
22+
import com.google.api.gax.batching.BatchingSettings;
2223
import com.google.api.gax.batching.FlowControlSettings;
2324
import com.google.api.gax.batching.FlowController;
24-
import com.google.api.gax.retrying.RetrySettings;
25-
import com.google.api.core.SettableApiFuture;
2625
import com.google.api.gax.grpc.ChannelProvider;
2726
import com.google.api.gax.grpc.ExecutorProvider;
2827
import com.google.api.gax.grpc.InstantiatingExecutorProvider;
28+
import com.google.api.gax.retrying.RetrySettings;
2929
import com.google.auth.oauth2.GoogleCredentials;
3030
import com.google.common.annotations.VisibleForTesting;
3131
import com.google.common.base.Preconditions;
@@ -180,7 +180,7 @@ public TopicName getTopicName() {
180180
* ByteString data = ByteString.copyFromUtf8(message);
181181
* PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build();
182182
* ApiFuture<String> messageIdFuture = publisher.publish(pubsubMessage);
183-
* messageIdFuture.addCallback(new ApiFutureCallback<String>() {
183+
* ApiFutures.addCallback(messageIdFuture, new ApiFutureCallback<String>() {
184184
* public void onSuccess(String messageId) {
185185
* System.out.println("published with message id: " + messageId);
186186
* }

0 commit comments

Comments
 (0)