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:
parent
d329bfdc97
commit
9ffbead73d
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user