Skip to content

Commit

Permalink
Increase api read timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Sep 23, 2023
1 parent 8f42ca2 commit 37b080f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import java.io.Serializable;
import java.lang.reflect.Array;
import java.time.Duration;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
Expand Down Expand Up @@ -99,6 +100,7 @@ public void authorize(HydraAuthorizedEvent event) {
meResult = null;

restTemplate = restTemplateBuilder.additionalMessageConverters(jsonApiMessageConverter)
.setReadTimeout(Duration.ofMinutes(5))
.errorHandler(jsonApiErrorHandler)
.rootUri(environmentProperties.getBaseUrl())
.interceptors(List.of(oAuthTokenInterceptor,
Expand Down
7 changes: 0 additions & 7 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
faforever:
api:
base-url: https://api.faforever.com
client-id: 05209670-36c5-40ad-b581-e71b7b49bd1a
client-secret: 370965a5-e7f2-4fe1-9225-e4517476b6a5
access-token-uri: ${faforever.api.base-url}/oauth/token
max-page-size: 10_000
max-result-size: 1_000_000
map-generator:
repo-and-owner-name: FAForever/Neroxis-Map-Generator
query-versions-url: https://api.github.com/repos/${faforever.map-generator.repo-and-owner-name}/releases
Expand Down

0 comments on commit 37b080f

Please sign in to comment.