Skip to content

Commit

Permalink
fix(api_locking): fix the unit interpretation for LockSettings expi…
Browse files Browse the repository at this point in the history
…ry (#3121)
  • Loading branch information
NishantJoshi00 authored Dec 13, 2023
1 parent 1add2c0 commit 3f4167d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/configs/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
}
Expand Down

0 comments on commit 3f4167d

Please sign in to comment.