Allow concurrency in small object uploads
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
asonix 2022-10-01 13:06:19 -05:00
parent 61903406b7
commit e7cf21f862

View file

@ -179,6 +179,7 @@ impl Store for ObjectStore {
let first_chunk = read_chunk(&mut stream).await?;
if first_chunk.len() < CHUNK_SIZE {
drop(stream);
let (req, object_id) = self.put_object_request().await?;
let response = req.send_body(first_chunk).await?;