From 50fa1ce181f28654c0ba8da929ec6f9df5344b43 Mon Sep 17 00:00:00 2001 From: "aj4941@naver.com" Date: Thu, 7 Dec 2023 02:14:08 +0900 Subject: [PATCH] =?UTF-8?q?:pencil2:=20[FIX]=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EC=8A=A4=EC=BC=80=EC=A4=84=EB=A7=81=20=EC=8A=A4=EB=A0=88?= =?UTF-8?q?=EB=93=9C=20=ED=92=80=20=EC=82=AC=EC=9D=B4=EC=A6=88=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit solved.ac OPEN API에 가중되는 부담을 줄이기 위해 스레드 풀 사이즈를 조금 줄였습니다. --- .../morandi/domain/testStart/service/GetProblemsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/swm_nm/morandi/domain/testStart/service/GetProblemsService.java b/src/main/java/swm_nm/morandi/domain/testStart/service/GetProblemsService.java index f8e4795..d45dc92 100644 --- a/src/main/java/swm_nm/morandi/domain/testStart/service/GetProblemsService.java +++ b/src/main/java/swm_nm/morandi/domain/testStart/service/GetProblemsService.java @@ -36,7 +36,7 @@ public List getProblemsByApi(TestType testType, String bojId) { List difficultyRanges = testType.getDifficultyRanges(); List bojProblems = BojProblem.initBojProblems(difficultyRanges); String apiUrl = "https://solved.ac/api/v3/search/problem"; - ExecutorService executorService = Executors.newFixedThreadPool(5); + ExecutorService executorService = Executors.newFixedThreadPool(3); List> futures = bojProblems.stream() .map(bojProblem -> CompletableFuture.runAsync(() -> {