fix: fix some todo's in core (#360)

This commit is contained in:
Kartikeya Hegde
2023-01-12 17:16:51 +05:30
committed by GitHub
parent a90dcb43f9
commit fab18346b6
11 changed files with 35 additions and 37 deletions

View File

@ -173,14 +173,14 @@ async fn trigger_webhook_to_merchant(
match response {
Err(e) => {
// TODO: Schedule webhook for retry.
// [#217]: Schedule webhook for retry.
Err(e)
.into_report()
.change_context(errors::WebhooksFlowError::CallToMerchantFailed)?;
}
Ok(res) => {
if !res.status().is_success() {
// TODO: Schedule webhook for retry.
// [#217]: Schedule webhook for retry.
Err(errors::WebhooksFlowError::NotReceivedByMerchant).into_report()?;
}
}