Merge pull request #247 from ikatson/stream-capacity

[Perf] Increase http_api stream capacity (perf optimisation)
This commit is contained in:
Igor Katson 2024-10-01 11:30:31 +01:00 committed by GitHub
commit 60728f1699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))))
}