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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(api_locking): fix the unit interpretation for `LockSettings` expiry (#3121)
Nishant Joshi3f4167dbd477
diff --git a/crates/router/src/configs/settings.rs b/crates/router/src/configs/settings.rsindex f73fe099c2..b628319508 100644--- a/crates/router/src/configs/settings.rs+++ b/crates/router/src/configs/settings.rs@@ -897,11 +897,11 @@ impl<'de> Deserialize<'de> for LockSettings {redis_lock_expiry_seconds,delay_between_retries_in_milliseconds,} = Inner::deserialize(deserializer)?;- let redis_lock_expiry_seconds = redis_lock_expiry_seconds * 1000;+ let redis_lock_expiry_milliseconds = redis_lock_expiry_seconds * 1000;Ok(Self {redis_lock_expiry_seconds,delay_between_retries_in_milliseconds,- lock_retries: redis_lock_expiry_seconds / delay_between_retries_in_milliseconds,+ lock_retries: redis_lock_expiry_milliseconds / delay_between_retries_in_milliseconds,})}}