mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
build(deps): bump error-stack from version 0.3.1 to 0.4.1 (#4188)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use std::sync::{atomic, Arc};
|
||||
|
||||
use error_stack::IntoReport;
|
||||
use error_stack::report;
|
||||
use redis_interface as redis;
|
||||
use serde::de::Deserialize;
|
||||
|
||||
@ -13,14 +13,11 @@ pub fn parse_stream_entries<'a>(
|
||||
read_result: &'a StreamReadResult,
|
||||
stream_name: &str,
|
||||
) -> errors::DrainerResult<&'a StreamEntries> {
|
||||
read_result
|
||||
.get(stream_name)
|
||||
.ok_or_else(|| {
|
||||
errors::DrainerError::RedisError(error_stack::report!(
|
||||
redis::errors::RedisError::NotFound
|
||||
))
|
||||
})
|
||||
.into_report()
|
||||
read_result.get(stream_name).ok_or_else(|| {
|
||||
report!(errors::DrainerError::RedisError(report!(
|
||||
redis::errors::RedisError::NotFound
|
||||
)))
|
||||
})
|
||||
}
|
||||
|
||||
pub(crate) fn deserialize_i64<'de, D>(deserializer: D) -> Result<i64, D::Error>
|
||||
|
||||
Reference in New Issue
Block a user