From 6f589e048f920c4d8b36c23bdd63fb54d431c9b8 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 4 Oct 2023 08:08:32 +0200 Subject: [PATCH] Set max pool size to 1 --- .../timetable/configuration/ThreadPoolTaskExecutorConfig.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/configuration/ThreadPoolTaskExecutorConfig.kt b/module-server/src/main/kotlin/de/twomartens/timetable/configuration/ThreadPoolTaskExecutorConfig.kt index 667ce73..8481538 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/configuration/ThreadPoolTaskExecutorConfig.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/configuration/ThreadPoolTaskExecutorConfig.kt @@ -12,6 +12,7 @@ open class ThreadPoolTaskExecutorConfig { open fun threadPoolTaskExecutor(): ThreadPoolTaskExecutor { val executor = ThreadPoolTaskExecutor() executor.corePoolSize = CORE_POOL_SIZE + executor.maxPoolSize = CORE_POOL_SIZE return executor } } \ No newline at end of file