try turning off streaming again
This commit is contained in:
parent
27ba7adea2
commit
9b4f14e779
@ -264,6 +264,8 @@ where
|
||||
nbytes: u64,
|
||||
web3_request: &Arc<Web3Request>,
|
||||
) -> Web3ProxyResult<SingleResponse<T>> {
|
||||
Ok(Self::from_bytes(response.bytes().await?)?)
|
||||
/*
|
||||
match response.content_length() {
|
||||
// short
|
||||
Some(len) if len <= nbytes => Ok(Self::from_bytes(response.bytes().await?)?),
|
||||
@ -297,6 +299,7 @@ where
|
||||
}))
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> {
|
||||
|
Loading…
Reference in New Issue
Block a user