fix(router): fix attempt status for techincal failures in psync flow (#2252)

This commit is contained in:
Sai Harsha Vardhan
2023-09-22 15:22:08 +05:30
committed by GitHub
parent aa8d0ddda1
commit 2b8bd03a72
2 changed files with 28 additions and 4 deletions

View File

@ -1033,3 +1033,15 @@ pub async fn get_profile_id_from_business_details(
},
}
}
#[inline]
pub fn get_flow_name<F>() -> RouterResult<String> {
Ok(std::any::type_name::<F>()
.to_string()
.rsplit("::")
.next()
.ok_or(errors::ApiErrorResponse::InternalServerError)
.into_report()
.attach_printable("Flow stringify failed")?
.to_string())
}