From 072805efc7aec39d50d45fcad3f7325a19a3bacf Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 5 Dec 2022 21:45:30 +0600 Subject: [PATCH] Update ServerLauncher.kt --- startup/launcher/src/commonMain/kotlin/ServerLauncher.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/startup/launcher/src/commonMain/kotlin/ServerLauncher.kt b/startup/launcher/src/commonMain/kotlin/ServerLauncher.kt index 9f63ef3add7..a7f871d261a 100644 --- a/startup/launcher/src/commonMain/kotlin/ServerLauncher.kt +++ b/startup/launcher/src/commonMain/kotlin/ServerLauncher.kt @@ -7,11 +7,7 @@ import org.koin.core.Koin import org.koin.core.module.Module import org.koin.dsl.module -class ServerLauncher : ServerPlugin { - val defaultJson = Json { - ignoreUnknownKeys = true - } - +object ServerLauncher : ServerPlugin { override fun Module.setupDI(config: JsonObject) { val pluginsConfig = defaultJson.decodeFromJsonElement(Config.serializer(), config)