diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/CourseAccess.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/CourseAccess.java index 672df6e3..1eb4504f 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/CourseAccess.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/CourseAccess.java @@ -44,14 +44,14 @@ public abstract class CourseAccess { this.allQuizzesRequest = asyncService.createMemoizingCircuitBreaker( allQuizzesSupplier(), 3, - Constants.MINUTE_IN_MILLIS, + 10 * Constants.SECOND_IN_MILLIS, Constants.MINUTE_IN_MILLIS, true, Constants.HOUR_IN_MILLIS); this.chaptersRequest = asyncService.createCircuitBreaker( 3, - Constants.MINUTE_IN_MILLIS, + 10 * Constants.SECOND_IN_MILLIS, Constants.MINUTE_IN_MILLIS); this.accountDetailRequest = asyncService.createCircuitBreaker( diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsAPIServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsAPIServiceImpl.java index 3c83aa98..8ff61b55 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsAPIServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/LmsAPIServiceImpl.java @@ -161,7 +161,7 @@ public class LmsAPIServiceImpl implements LmsAPIService { final Long institutionId = filterMap.getInstitutionId(); return this.lmsSetupDAO.all(institutionId, true) .getOrThrow() - .stream() + .parallelStream() .map(this::getLmsAPITemplate) .flatMap(Result::onErrorLogAndSkip) .map(template -> template.getQuizzes(filterMap))