2 Commits

Author SHA1 Message Date
hubert dd08763161 We don't need that much RAM 2020-09-30 18:57:46 +02:00
hubert e0b1514965 Unload bootstraping modules after startup 2020-09-30 18:56:52 +02:00
+1 -8
View File
@@ -2,16 +2,9 @@ package be.simplenotes.app.modules
import be.simplenotes.app.Config import be.simplenotes.app.Config
import org.koin.dsl.module import org.koin.dsl.module
import org.koin.dsl.onClose
val configModule = module { val configModule = module {
single { Config() } onClose { single { Config() }
println("Unloaded config")
println("Unloaded config")
println("Unloaded config")
println("Unloaded config")
}
single { get<Config>().dataSourceConfig } single { get<Config>().dataSourceConfig }
single { get<Config>().jwtConfig } single { get<Config>().jwtConfig }
single { get<Config>().serverConfig } single { get<Config>().serverConfig }