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

Commit a1cc2f8

Browse files
add todo
Change-Id: If07939e62e04e9c7a27862bf87ca5b8731711b75
1 parent 8318285 commit a1cc2f8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/MetadataExtractorInterceptor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import com.google.api.core.InternalApi;
1919
import com.google.api.gax.grpc.GrpcCallContext;
20+
import com.google.api.gax.grpc.GrpcTransportChannel;
2021
import com.google.bigtable.v2.PeerInfo;
2122
import com.google.bigtable.v2.ResponseParams;
2223
import com.google.common.base.Strings;
@@ -43,6 +44,9 @@ public class MetadataExtractorInterceptor implements ClientInterceptor {
4344
private final SidebandData sidebandData = new SidebandData();
4445

4546
public GrpcCallContext injectInto(GrpcCallContext ctx) {
47+
// TODO: migrate to using .withTransportChannel
48+
// This will require a change on gax's side to expose the underlying ManagedChannel in
49+
// GrpcTransportChannel (its currently package private).
4650
return ctx.withChannel(ClientInterceptors.intercept(ctx.getChannel(), this))
4751
.withCallOptions(ctx.getCallOptions().withOption(SidebandData.KEY, sidebandData));
4852
}

0 commit comments

Comments
 (0)