try turning off streaming again

This commit is contained in:
Bryan Stitt 2023-10-10 23:04:58 -07:00
parent 27ba7adea2
commit 9b4f14e779

View File

@ -264,6 +264,8 @@ where
nbytes: u64, nbytes: u64,
web3_request: &Arc<Web3Request>, web3_request: &Arc<Web3Request>,
) -> Web3ProxyResult<SingleResponse<T>> { ) -> Web3ProxyResult<SingleResponse<T>> {
Ok(Self::from_bytes(response.bytes().await?)?)
/*
match response.content_length() { match response.content_length() {
// short // short
Some(len) if len <= nbytes => Ok(Self::from_bytes(response.bytes().await?)?), Some(len) if len <= nbytes => Ok(Self::from_bytes(response.bytes().await?)?),
@ -297,6 +299,7 @@ where
})) }))
} }
} }
*/
} }
fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> { fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> {