From cdf2aac64b3262c59214ffcfebce967623da3f5f Mon Sep 17 00:00:00 2001 From: marc2332 Date: Tue, 20 Feb 2024 16:06:21 +0100 Subject: [PATCH] more patches --- sdk/src/client/node_api/core/mod.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/src/client/node_api/core/mod.rs b/sdk/src/client/node_api/core/mod.rs index 96beeea649..e65ffc87d8 100644 --- a/sdk/src/client/node_api/core/mod.rs +++ b/sdk/src/client/node_api/core/mod.rs @@ -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() } @@ -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() }