mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http_private: increase response byte vector capacities
This commit is contained in:
parent
70d79b1871
commit
f1e81a5288
1 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ pub async fn announce(
|
|||
}
|
||||
|
||||
fn create_response(response: Response) -> axum::response::Response {
|
||||
let mut response_bytes = Vec::with_capacity(64);
|
||||
let mut response_bytes = Vec::with_capacity(128);
|
||||
|
||||
response.write(&mut response_bytes).unwrap();
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ fn create_response(response: Response) -> axum::response::Response {
|
|||
}
|
||||
|
||||
fn create_failure_response<R: Into<Cow<'static, str>>>(reason: R) -> axum::response::Response {
|
||||
let mut response_bytes = Vec::with_capacity(32);
|
||||
let mut response_bytes = Vec::with_capacity(64);
|
||||
|
||||
FailureResponse::new(reason)
|
||||
.write(&mut response_bytes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue