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 // Database check
healthCheckHandler.register("DataBase", future -> { healthCheckHandler.register("database", future -> {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
dbService.getPool().query("SELECT 1").execute() dbService.getPool().query("SELECT 1").execute()
.onSuccess(rs -> { .onSuccess(rs -> {
long time = System.currentTimeMillis() - start; long time = System.currentTimeMillis() - start;
JsonObject data = new JsonObject() JsonObject data = new JsonObject()
.put("name", "database") .put("name", "DataBase")
.put("latency_ms", time); .put("latency_ms", time);
future.complete(Status.OK(data)); future.complete(Status.OK(data));
}) })