Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
feat: update DirectPath xds scheme (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanli-ml committed Jan 5, 2022
1 parent 0a10f5f commit 7915f85
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7915f85

Please sign in to comment.