This commit is contained in:
2026-04-18 13:36:21 +03:00
parent 0bca35d015
commit c47542bef3

View File

@@ -42,13 +42,13 @@ public class HealthCheckService {
});
// Database check
healthCheckHandler.register("DataBase", future -> {
healthCheckHandler.register("database", future -> {
long start = System.currentTimeMillis();
dbService.getPool().query("SELECT 1").execute()
.onSuccess(rs -> {
long time = System.currentTimeMillis() - start;
JsonObject data = new JsonObject()
.put("name", "database")
.put("name", "DataBase")
.put("latency_ms", time);
future.complete(Status.OK(data));
})