aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/s3_put.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3_put.rs b/src/api/s3_put.rs
index 09c3cdbe..9c4d625c 100644
--- a/src/api/s3_put.rs
+++ b/src/api/s3_put.rs
@@ -248,7 +248,7 @@ impl BodyChunker {
body,
read_all: false,
block_size,
- buf: VecDeque::new(),
+ buf: VecDeque::with_capacity(2 * block_size),
}
}
async fn next(&mut self) -> Result<Option<Vec<u8>>, GarageError> {