build(deps): bump error-stack from version 0.3.1 to 0.4.1 (#4188)

This commit is contained in:
Sanchith Hegde
2024-04-01 12:31:17 +05:30
committed by GitHub
parent cb2000b088
commit ea730d4ffc
286 changed files with 1361 additions and 2397 deletions

View File

@ -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)),
}

View File

@ -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")]