Skip to content

Commit

Permalink
Replace C2P resolver env var with experimental scheme suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
apolcyn committed Dec 7, 2021
1 parent 5cc94a5 commit 8777085
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -29,9 +29,7 @@
@Internal
public final class GoogleCloudToProdNameResolverProvider extends NameResolverProvider {

private static final boolean enableC2PResolver =
Boolean.parseBoolean(System.getenv("GRPC_EXPERIMENTAL_GOOGLE_C2P_RESOLVER"));
private static final String SCHEME = "google-c2p";
private static final String SCHEME = "google-c2p-experimental";

@Override
public NameResolver newNameResolver(URI targetUri, Args args) {
Expand All @@ -50,10 +48,7 @@ public String getDefaultScheme() {

@Override
protected boolean isAvailable() {
if (enableC2PResolver) {
return true;
}
return false;
return true;
}

@Override
Expand Down

0 comments on commit 8777085

Please sign in to comment.