Small optimisation

This commit is contained in:
Alex 2020-11-29 17:06:55 +01:00
parent 3f18aa6f1d
commit d54f15b2c6

View file

@ -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> {