Heimdall: Actually set max lifetime and pool size.

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

View File

@ -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 }