mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
chore(deps): update fred and moka (#3088)
This commit is contained in:
@ -383,6 +383,7 @@ impl super::RedisConnectionPool {
|
||||
) -> CustomResult<Vec<String>, errors::RedisError> {
|
||||
Ok(self
|
||||
.pool
|
||||
.next()
|
||||
.hscan::<&str, &str>(key, pattern, count)
|
||||
.filter_map(|value| async move {
|
||||
match value {
|
||||
@ -562,7 +563,7 @@ impl super::RedisConnectionPool {
|
||||
.await
|
||||
.into_report()
|
||||
.map_err(|err| match err.current_context().kind() {
|
||||
RedisErrorKind::NotFound => {
|
||||
RedisErrorKind::NotFound | RedisErrorKind::Parse => {
|
||||
err.change_context(errors::RedisError::StreamEmptyOrNotAvailable)
|
||||
}
|
||||
_ => err.change_context(errors::RedisError::StreamReadFailed),
|
||||
|
||||
Reference in New Issue
Block a user