Skip to content

Commit

Permalink
more patches
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 20, 2024
1 parent eba816d commit cdf2aac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions sdk/src/client/node_api/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ impl Client {
futures::future::join_all(output_ids.iter().map(|id| self.get_output(id)))
.await
.into_iter()
.filter(|res| !matches!(res, Err(Error::Node(NodeApiError::NotFound(_)))))
.filter(|res| {
!matches!(
res,
Err(Error::Node(NodeApiError::NotFound(_))) | Err(Error::Node(NodeApiError::ResponseError { .. }))
)
})
.collect()
}

Expand All @@ -39,7 +44,12 @@ impl Client {
futures::future::join_all(output_ids.iter().map(|id| self.get_output_metadata(id)))
.await
.into_iter()
.filter(|res| !matches!(res, Err(Error::Node(NodeApiError::NotFound(_)))))
.filter(|res| {
!matches!(
res,
Err(Error::Node(NodeApiError::NotFound(_))) | Err(Error::Node(NodeApiError::ResponseError { .. }))
)
})
.collect()
}

Expand Down

0 comments on commit cdf2aac

Please sign in to comment.