From 9ffbead73d9f4d91545962efba2a329ed006c475 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 16 Oct 2023 15:09:01 -0700 Subject: [PATCH] always buffer (again) i see some errors in sentry. we need to figure them out before turning this back on --- web3_proxy/src/jsonrpc/response.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web3_proxy/src/jsonrpc/response.rs b/web3_proxy/src/jsonrpc/response.rs index fd1ad868..75b475e5 100644 --- a/web3_proxy/src/jsonrpc/response.rs +++ b/web3_proxy/src/jsonrpc/response.rs @@ -257,6 +257,8 @@ where nbytes: u64, web3_request: &Arc, ) -> Web3ProxyResult> { + return Ok(Self::from_bytes(response.bytes().await?)?); + /* match response.content_length() { // short Some(len) if len <= nbytes => Ok(Self::from_bytes(response.bytes().await?)?), @@ -292,6 +294,7 @@ where })) } } + */ } fn from_bytes(buf: Bytes) -> Result {