Revert "always buffer (again)"

This reverts commit 9ffbead73d9f4d91545962efba2a329ed006c475.
This commit is contained in:
Bryan Stitt 2023-10-16 19:02:25 -07:00
parent 6b28c8083b
commit 349624498f

@ -257,8 +257,6 @@ where
nbytes: u64,
web3_request: &Arc<ValidatedRequest>,
) -> Web3ProxyResult<SingleResponse<T>> {
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<Self, serde_json::Error> {