2 Commits

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