Merge pull request #247 from ikatson/stream-capacity
[Perf] Increase http_api stream capacity (perf optimisation)
This commit is contained in:
commit
60728f1699
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ impl HttpApi {
|
|||
);
|
||||
}
|
||||
|
||||
let s = tokio_util::io::ReaderStream::new(stream);
|
||||
let s = tokio_util::io::ReaderStream::with_capacity(stream, 65536);
|
||||
Ok((status, (output_headers, axum::body::Body::from_stream(s))))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue