Skip to content

Commit

Permalink
fix: Updates for import (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdiep committed Jul 9, 2021
1 parent 5fe36cb commit 245004e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

@AutoOneOf(CloudRegionOrZone.Kind.class)
public abstract class CloudRegionOrZone implements Serializable {
enum Kind {
public enum Kind {
REGION,
ZONE
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@
import com.google.cloud.pubsublite.proto.SubscribeRequest;
import com.google.cloud.pubsublite.proto.SubscribeResponse;
import com.google.common.base.Preconditions;
import com.google.common.flogger.GoogleLogger;
import java.util.List;
import java.util.stream.Collectors;

class ConnectedSubscriberImpl
extends SingleConnection<SubscribeRequest, SubscribeResponse, List<SequencedMessage>>
implements ConnectedSubscriber {

private static final GoogleLogger log = GoogleLogger.forEnclosingClass();

private final SubscribeRequest initialRequest;

static class Factory implements ConnectedSubscriberFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ private void handleConfig(long partitionCount) {
current.ifPresent(p -> p.publishers.forEach(mapBuilder::put));
getNewPartitionPublishers(LongStream.range(currentSize, partitionCount))
.forEach(mapBuilder::put);
ImmutableMap<Partition, Publisher<MessageMetadata>> newMap = mapBuilder.build();

partitionsWithRouting =
Optional.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
import java.util.function.Consumer;

public interface SubscriberFactory extends Serializable {
Subscriber newSubscriber(Consumer<List<SequencedMessage>> message_consumer) throws ApiException;
Subscriber newSubscriber(Consumer<List<SequencedMessage>> messageConsumer) throws ApiException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public void setUp() throws IOException {
.then(
args -> {
Preconditions.checkArgument(!leakedResponseStream.isPresent());
ResponseObserver<SubscribeResponse> ResponseObserver = args.getArgument(0);
leakedResponseStream = Optional.of(ResponseObserver);
ResponseObserver<SubscribeResponse> responseObserver = args.getArgument(0);
leakedResponseStream = Optional.of(responseObserver);
return mockRequestStream;
});
}
Expand Down

0 comments on commit 245004e

Please sign in to comment.