mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix: replace xtrim with xdel to support older redis version (#8515)
Co-authored-by: Akshay S <akshay.s@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -277,9 +277,15 @@ async fn drainer(
|
||||
_ => break,
|
||||
},
|
||||
}
|
||||
|
||||
if store.use_legacy_version() {
|
||||
store
|
||||
.delete_from_stream(stream_name, &last_processed_id)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
|
||||
if !last_processed_id.is_empty() {
|
||||
if !(last_processed_id.is_empty() || store.use_legacy_version()) {
|
||||
let entries_trimmed = store
|
||||
.trim_from_stream(stream_name, &last_processed_id)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user