Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 91548d8

Browse files
committed
fix
1 parent e10e1eb commit 91548d8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/grpc/BigtableChannelPool.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
import java.util.logging.Logger;
5252
import javax.annotation.Nullable;
5353

54-
import static com.google.bigtable.v2.PeerInfo.TransportType.TRANSPORT_TYPE_UNKNOWN;
55-
5654
/**
5755
* A {@link ManagedChannel} that will send requests round-robin via a set of channels.
5856
*
@@ -560,8 +558,8 @@ static class Entry implements BigtableChannelObserver {
560558
/** this contains the PeerInfo field of the most recent rpc on this channel entry. */
561559
@VisibleForTesting
562560
volatile PeerInfo.TransportType transportType =
563-
TRANSPORT_TYPE_UNKNOWN;
564-
561+
PeerInfo.TransportType.TRANSPORT_TYPE_UNKNOWN;
562+
565563
/** Queue storing the last 5 minutes of probe results */
566564
@VisibleForTesting
567565
final ConcurrentLinkedQueue<ProbeResult> probeHistory = new ConcurrentLinkedQueue<>();
@@ -594,7 +592,7 @@ void setTransportType(CallOptions callOptions) {
594592
transportType = Optional.ofNullable(sidebandData)
595593
.map(MetadataExtractorInterceptor.SidebandData::getPeerInfo)
596594
.map(PeerInfo::getTransportType)
597-
.orElse(TRANSPORT_TYPE_UNKNOWN);
595+
.orElse(PeerInfo.TransportType.TRANSPORT_TYPE_UNKNOWN);
598596
}
599597

600598
ManagedChannel getManagedChannel() {

0 commit comments

Comments
 (0)