mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Allow concurrency in small object uploads
This commit is contained in:
parent
61903406b7
commit
e7cf21f862
1 changed files with 1 additions and 0 deletions
|
@ -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?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue