Skip to content

Commit

Permalink
Use default retry value.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Oct 23, 2024
1 parent 544d9d1 commit c3ede1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oauth2_http/java/com/google/auth/oauth2/S2A.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public final class S2A {

public static final String METADATA_FLAVOR = "Metadata-Flavor";
public static final String GOOGLE = "Google";
private static final int MAX_MDS_PING_TRIES = 3;
private static final String PARSE_ERROR_S2A = "Error parsing S2A Config from MDS JSON response.";

private S2AConfig config;
Expand Down Expand Up @@ -104,7 +103,7 @@ private S2AConfig getS2AConfigFromMDS() {
return S2AConfig.createBuilder().build();
}

for (int i = 0; i < MAX_MDS_PING_TRIES; i++) {
for (int i = 0; i < OAuth2Utils.DEFAULT_NUMBER_OF_RETRIES; i++) {
String plaintextS2AAddress = "";
String mtlsS2AAddress = "";
try {
Expand Down

0 comments on commit c3ede1d

Please sign in to comment.