mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
fix: handle session and confirm flow discrepancy in surcharge details (#2696)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -248,7 +248,7 @@ impl super::RedisConnectionPool {
|
||||
&self,
|
||||
key: &str,
|
||||
values: V,
|
||||
ttl: Option<u32>,
|
||||
ttl: Option<i64>,
|
||||
) -> CustomResult<(), errors::RedisError>
|
||||
where
|
||||
V: TryInto<RedisMap> + Debug + Send + Sync,
|
||||
@ -260,11 +260,10 @@ impl super::RedisConnectionPool {
|
||||
.await
|
||||
.into_report()
|
||||
.change_context(errors::RedisError::SetHashFailed);
|
||||
|
||||
// setting expiry for the key
|
||||
output
|
||||
.async_and_then(|_| {
|
||||
self.set_expiry(key, ttl.unwrap_or(self.config.default_hash_ttl).into())
|
||||
self.set_expiry(key, ttl.unwrap_or(self.config.default_hash_ttl.into()))
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user