turn streaming on

This commit is contained in:
Bryan Stitt 2023-10-12 14:12:31 -07:00
parent 235f514997
commit 1178cb61a4

View File

@ -257,8 +257,6 @@ where
nbytes: u64, nbytes: u64,
web3_request: &Arc<ValidatedRequest>, web3_request: &Arc<ValidatedRequest>,
) -> 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?)?),
@ -292,7 +290,6 @@ where
})) }))
} }
} }
*/
} }
fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> { fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> {