Skip to content

Commit 012e3ad

Browse files
authored
Increase retry-attempts from 3 to 5. (#32)
1 parent b019752 commit 012e3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/no/ssb/guardian/maskinporten/MaskinportenAccessTokenController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class MaskinportenAccessTokenController {
4040
private final MaskinportenConfig maskinportenConfig;
4141

4242
@Post("/maskinporten/access-token")
43-
@Retryable(predicate = WrappedSocketExceptionRetryPredicate.class)
43+
@Retryable(attempts = "5", predicate = WrappedSocketExceptionRetryPredicate.class)
4444
public HttpResponse<AccessTokenResponse> fetchMaskinportenAccessToken(Principal principal, FetchMaskinportenAccessTokenRequest request) {
4545
log.info("Request: {}", request);
4646
log.info("AUDIT {}", PrincipalUtil.auditInfoOf(principal));

0 commit comments

Comments
 (0)