Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(core): Skip locker health check when locker is disabled (#15218)

Saptak Dutta124294a779cf
diff --git a/crates/router/src/core/health_check.rs b/crates/router/src/core/health_check.rs
index af6244e96c..ff98d7445f 100644
--- a/crates/router/src/core/health_check.rs
+++ b/crates/router/src/core/health_check.rs
@@ -88,7 +88,7 @@ impl HealthCheckInterface for app::SessionState {
&self,
) -> CustomResult<HealthState, errors::HealthCheckLockerError> {
let locker = &self.conf.locker;
- if !locker.mock_locker {
+ if locker.locker_enabled && !locker.mock_locker {
let mut url = locker.host.to_owned();
url.push_str(consts::LOCKER_HEALTH_CALL_PATH);
let request = services::Request::new(services::Method::Get, &url);