always buffer (again)

i see some errors in sentry. we need to figure them out before turning this back on
This commit is contained in:
Bryan Stitt 2023-10-16 15:09:01 -07:00
parent d329bfdc97
commit 9ffbead73d

View File

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