From 73064db226e0dd730aebdaa001e82dfefde63479 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 30 Oct 2024 18:09:23 +0600 Subject: [PATCH] small adaptation --- WebApp/src/jvmMain/kotlin/WebAppServer.kt | 5 +---- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/WebApp/src/jvmMain/kotlin/WebAppServer.kt b/WebApp/src/jvmMain/kotlin/WebAppServer.kt index b50a3c9..f067cd2 100644 --- a/WebApp/src/jvmMain/kotlin/WebAppServer.kt +++ b/WebApp/src/jvmMain/kotlin/WebAppServer.kt @@ -63,10 +63,7 @@ suspend fun main(vararg args: String) { val bot = telegramBot(telegramBotAPIUrlsKeeper) createKtorServer( "0.0.0.0", - args.getOrNull(2) ?.toIntOrNull() ?: 8080, - additionalEngineEnvironmentConfigurator = { - parentCoroutineContext += Dispatchers.IO - } + args.getOrNull(2) ?.toIntOrNull() ?: 8080 ) { routing { val baseJsFolder = File("WebApp/build/dist/js/") diff --git a/gradle.properties b/gradle.properties index 15b4c65..d0319f0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,4 +9,4 @@ kotlin_version=2.0.21 telegram_bot_api_version=19.0.0 micro_utils_version=0.23.0 serialization_version=1.7.3 -ktor_version=3.0.0 +ktor_version=3.0.1