From 349624498f2ddcb45313be79a42c14793bf68ee6 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 16 Oct 2023 19:02:25 -0700 Subject: [PATCH] Revert "always buffer (again)" This reverts commit 9ffbead73d9f4d91545962efba2a329ed006c475. --- web3_proxy/src/jsonrpc/response.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/web3_proxy/src/jsonrpc/response.rs b/web3_proxy/src/jsonrpc/response.rs index 75b475e5..fd1ad868 100644 --- a/web3_proxy/src/jsonrpc/response.rs +++ b/web3_proxy/src/jsonrpc/response.rs @@ -257,8 +257,6 @@ 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?)?), @@ -294,7 +292,6 @@ where })) } } - */ } fn from_bytes(buf: Bytes) -> Result {