Skip to content

Commit 64d7f31

Browse files
fix(health): add cancelFutures in healthservice
1 parent 5c82af1 commit 64d7f31

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/iemr/admin/service/health/HealthService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ private void performHealthChecks(Map<String, Object> mysqlStatus, Map<String, Ob
156156
cancelFutures(mysqlFuture, redisFuture);
157157
} catch (Exception e) {
158158
logger.warn("Health check execution error: {}", e.getMessage());
159+
cancelFutures(mysqlFuture, redisFuture);
159160
}
160161
}
161162

0 commit comments

Comments
 (0)