Skip to content

Commit

Permalink
VKT(Backend) Oops, wrong duration here
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkkp committed Feb 18, 2025
1 parent 9877f03 commit e4938b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import fi.oph.vkt.config.Constants;
import fi.oph.vkt.util.HetuUtils;
import fi.vm.sade.javautils.nio.cas.CasClient;

import java.time.Duration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -117,6 +119,6 @@ private RequestBuilder defaultRequestBuilder() {
.addHeader("Accept", MediaType.APPLICATION_JSON_VALUE)
.addHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE)
.addHeader("Caller-Id", Constants.CALLER_ID)
.setRequestTimeout(TimeUnit.MINUTES.toChronoUnit().getDuration());
.setRequestTimeout(Duration.ofMinutes(2));
}
}

0 comments on commit e4938b3

Please sign in to comment.