turn streaming on
This commit is contained in:
parent
235f514997
commit
1178cb61a4
@ -257,8 +257,6 @@ where
|
|||||||
nbytes: u64,
|
nbytes: u64,
|
||||||
web3_request: &Arc<ValidatedRequest>,
|
web3_request: &Arc<ValidatedRequest>,
|
||||||
) -> Web3ProxyResult<SingleResponse<T>> {
|
) -> Web3ProxyResult<SingleResponse<T>> {
|
||||||
Ok(Self::from_bytes(response.bytes().await?)?)
|
|
||||||
/*
|
|
||||||
match response.content_length() {
|
match response.content_length() {
|
||||||
// short
|
// short
|
||||||
Some(len) if len <= nbytes => Ok(Self::from_bytes(response.bytes().await?)?),
|
Some(len) if len <= nbytes => Ok(Self::from_bytes(response.bytes().await?)?),
|
||||||
@ -292,7 +290,6 @@ where
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> {
|
fn from_bytes(buf: Bytes) -> Result<Self, serde_json::Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user