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:
@ -8,7 +8,7 @@ use common_utils::errors::{CustomResult, ParsingError};
|
||||
use diesel_models::enums::{
|
||||
AttemptStatus, AuthenticationType, Currency, PaymentMethod, RefundStatus,
|
||||
};
|
||||
use error_stack::{IntoReport, ResultExt};
|
||||
use error_stack::ResultExt;
|
||||
use masking::PeekInterface;
|
||||
use sqlx::{
|
||||
postgres::{PgArgumentBuffer, PgPoolOptions, PgRow, PgTypeInfo, PgValueRef},
|
||||
@ -138,9 +138,7 @@ where
|
||||
for<'a> T: FromRow<'a, PgRow>,
|
||||
{
|
||||
fn load_row(row: PgRow) -> CustomResult<T, QueryExecutionError> {
|
||||
T::from_row(&row)
|
||||
.into_report()
|
||||
.change_context(QueryExecutionError::RowExtractionFailure)
|
||||
T::from_row(&row).change_context(QueryExecutionError::RowExtractionFailure)
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,7 +161,6 @@ impl AnalyticsDataSource for SqlxClient {
|
||||
sqlx::query(&format!("{query};"))
|
||||
.fetch_all(&self.pool)
|
||||
.await
|
||||
.into_report()
|
||||
.change_context(QueryExecutionError::DatabaseError)
|
||||
.attach_printable_lazy(|| format!("Failed to run query {query}"))?
|
||||
.into_iter()
|
||||
@ -179,7 +176,6 @@ impl HealthCheck for SqlxClient {
|
||||
.fetch_all(&self.pool)
|
||||
.await
|
||||
.map(|_| ())
|
||||
.into_report()
|
||||
.change_context(QueryExecutionError::DatabaseError)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user