temporarily switch off streaming and always buffer (#225)

Co-authored-by: Rory Neithinger <rory@llamanodes.com>
This commit is contained in:
Bryan Stitt 2023-10-05 18:26:29 -07:00 committed by GitHub
parent 84bff33257
commit bba02cc121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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