Increase http_api stream capacity (testing perf optimisation)

This commit is contained in:
Igor Katson 2024-09-20 23:10:58 +01:00
parent e97e26f97f
commit b1b76edf10
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

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