Why ?!
This commit is contained in:
parent
dd174a6327
commit
b1478fd154
@ -6,6 +6,7 @@ import be.simplenotes.persistance.utils.type
|
||||
import me.liuwj.ktorm.database.Database
|
||||
import me.liuwj.ktorm.database.asIterable
|
||||
import me.liuwj.ktorm.database.use
|
||||
import java.io.EOFException
|
||||
import java.sql.SQLTransientException
|
||||
import javax.inject.Singleton
|
||||
|
||||
@ -27,5 +28,7 @@ internal class DbHealthCheckImpl(
|
||||
}.any { it in dataSourceConfig.jdbcUrl }
|
||||
} catch (e: SQLTransientException) {
|
||||
false
|
||||
} catch (e: EOFException) {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user