Skip to content
Permalink
Browse files
feat: update DirectPath xds scheme (#1585)
  • Loading branch information
mohanli-ml committed Jan 5, 2022
1 parent 0a10f5f commit 7915f850313ddfdf35332d976d2567f31c2aa8a7
Showing with 2 additions and 1 deletion.
  1. +2 −1 gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java
@@ -339,7 +339,8 @@ && isOnComputeEngine()) {
isDirectPathXdsEnabled = Boolean.parseBoolean(envProvider.getenv(DIRECT_PATH_ENV_ENABLE_XDS));
if (isDirectPathXdsEnabled) {
// google-c2p resolver target must not have a port number
builder = ComputeEngineChannelBuilder.forTarget("google-c2p:///" + serviceAddress);
builder =
ComputeEngineChannelBuilder.forTarget("google-c2p-experimental:///" + serviceAddress);
} else {
builder = ComputeEngineChannelBuilder.forAddress(serviceAddress, port);
builder.defaultServiceConfig(directPathServiceConfig);

0 comments on commit 7915f85

Please sign in to comment.