From b5eebcea763c1cd76c0f8f118307375c483365ab Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Tue, 12 Dec 2023 14:43:11 +0100 Subject: [PATCH] fix(service): avoid unnecessary error conversion --- service/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main.rs b/service/src/main.rs index 95e66b28..855bbc52 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -153,7 +153,7 @@ impl IndexerServiceImpl for SubgraphService { let body = response .text() .await - .map_err(|e| SubgraphServiceError::QueryForwardingError(reqwest::Error::from(e)))?; + .map_err(SubgraphServiceError::QueryForwardingError)?; Ok((request, SubgraphServiceResponse::new(body, attestable))) }