mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
build(deps): bump error-stack from version 0.3.1 to 0.4.1 (#4188)
This commit is contained in:
@ -21,7 +21,7 @@ use diesel_models::{
|
||||
},
|
||||
ReverseLookupNew,
|
||||
};
|
||||
use error_stack::{IntoReport, ResultExt};
|
||||
use error_stack::ResultExt;
|
||||
use redis_interface::HsetnxReply;
|
||||
use router_env::{instrument, logger, tracing};
|
||||
|
||||
@ -115,8 +115,8 @@ impl<T: DatabaseStore> PayoutAttemptInterface for KVRouterStore<T> {
|
||||
Ok(HsetnxReply::KeyNotSet) => Err(errors::StorageError::DuplicateValue {
|
||||
entity: "payout attempt",
|
||||
key: Some(key),
|
||||
})
|
||||
.into_report(),
|
||||
}
|
||||
.into()),
|
||||
Ok(HsetnxReply::KeySet) => Ok(created_attempt),
|
||||
Err(error) => Err(error.change_context(errors::StorageError::KVError)),
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ use diesel_models::{
|
||||
query::generics::db_metrics,
|
||||
schema::{payout_attempt::dsl as poa_dsl, payouts::dsl as po_dsl},
|
||||
};
|
||||
use error_stack::{IntoReport, ResultExt};
|
||||
use error_stack::ResultExt;
|
||||
use redis_interface::HsetnxReply;
|
||||
#[cfg(feature = "olap")]
|
||||
use router_env::logger;
|
||||
@ -100,8 +100,8 @@ impl<T: DatabaseStore> PayoutsInterface for KVRouterStore<T> {
|
||||
Ok(HsetnxReply::KeyNotSet) => Err(StorageError::DuplicateValue {
|
||||
entity: "payouts",
|
||||
key: Some(key),
|
||||
})
|
||||
.into_report(),
|
||||
}
|
||||
.into()),
|
||||
Ok(HsetnxReply::KeySet) => Ok(created_payout),
|
||||
Err(error) => Err(error.change_context(StorageError::KVError)),
|
||||
}
|
||||
@ -474,8 +474,8 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
|
||||
error_stack::report!(diesel_models::errors::DatabaseError::from(er))
|
||||
.attach_printable("Error filtering payout records"),
|
||||
)
|
||||
.into()
|
||||
})
|
||||
.into_report()
|
||||
}
|
||||
|
||||
#[cfg(feature = "olap")]
|
||||
@ -603,8 +603,8 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
|
||||
error_stack::report!(diesel_models::errors::DatabaseError::from(er))
|
||||
.attach_printable("Error filtering payout records"),
|
||||
)
|
||||
.into()
|
||||
})
|
||||
.into_report()
|
||||
}
|
||||
|
||||
#[cfg(feature = "olap")]
|
||||
|
||||
Reference in New Issue
Block a user