Skip to content

Commit

Permalink
Resolve compile errors due to java version
Browse files Browse the repository at this point in the history
Signed-off-by: chase <yun.er.run@gmail.com>
  • Loading branch information
shanzi committed May 31, 2021
1 parent d8e65a0 commit 9038e44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/tikv/cdc/RegionCDCClient.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.tikv.cdc;

import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableSet;
import io.grpc.ManagedChannel;
import io.grpc.stub.StreamObserver;
import java.util.Set;
Expand All @@ -24,7 +25,7 @@ class RegionCDCClient implements AutoCloseable, StreamObserver<ChangeDataEvent>
private static final Logger LOGGER = LoggerFactory.getLogger(RegionCDCClient.class);
private static final AtomicLong REQ_ID_COUNTER = new AtomicLong(0);
private static final Set<LogType> ALLOWED_LOGTYPE =
Set.of(LogType.PREWRITE, LogType.COMMIT, LogType.COMMITTED, LogType.ROLLBACK);
ImmutableSet.of(LogType.PREWRITE, LogType.COMMIT, LogType.COMMITTED, LogType.ROLLBACK);

private final TiRegion region;
private final KeyRange keyRange;
Expand Down

0 comments on commit 9038e44

Please sign in to comment.