Heimdall: Actually set max lifetime and pool size.

This commit is contained in:
Kenneth Endfinger committed 2022-02-21 19:45:26 -05:00
1 parent a184d2e845
commit e3d9eb80fc
2 files changed
+4 -1

No files matched your search

@@ -28,7 +28,7 @@ class GjallarhornCommand : CliktCommand(invokeWithoutSubcommand = true) {
password = jdbcConnectionPassword
minimumIdle = dbPoolSize / 2
maximumPoolSize = dbPoolSize
maxLifetime = Duration.ofHours(2).toMillis()
maxLifetime = Duration.ofMinutes(10).toMillis()
})
val db = Database.connect(pool)
currentContext.findOrSetObject { db }