mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-21 16:29:20 -04:00
fix(gui): Do not fail get_swap_infos_call if >1 retrieval fails
This commit is contained in:
parent
13b3ecc638
commit
22878c8270
@ -459,8 +459,12 @@ pub async fn get_swap_infos_all(context: Arc<Context>) -> Result<Vec<GetSwapInfo
|
||||
let mut swap_infos = Vec::new();
|
||||
|
||||
for (swap_id, _) in swap_ids {
|
||||
let swap_info = get_swap_info(GetSwapInfoArgs { swap_id }, context.clone()).await?;
|
||||
swap_infos.push(swap_info);
|
||||
match get_swap_info(GetSwapInfoArgs { swap_id }, context.clone()).await {
|
||||
Ok(swap_info) => swap_infos.push(swap_info),
|
||||
Err(error) => {
|
||||
tracing::error!(%swap_id, %error, "Failed to get swap info");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(swap_infos)
|
||||
|
Loading…
x
Reference in New Issue
Block a user