2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 11:21:14 +00:00

Allow concurrency in small object uploads

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?;