Skip to content

Commit

Permalink
Merge pull request tursodatabase#1768 from tursodatabase/fix-multipar…
Browse files Browse the repository at this point in the history
…t-upload-empty-payload

fix multipart upload empty payload
  • Loading branch information
MarinPostma authored Oct 2, 2024
2 parents b2d59ca + 96d4d8d commit 0916848
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsql-wal/src/storage/backend/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ impl<IO: Io> S3Backend<IO> {
let mut current_chunk_len = 0;
tokio::pin!(data);
loop {
let Some(frame) = poll_fn(|cx| data.as_mut().poll_frame(cx)).await else {
let next_frame_fut = poll_fn(|cx| data.as_mut().poll_frame(cx));
let Some(frame) = next_frame_fut.await else {
let _ = s_chunks.send(current_chunk_file).await;
break;
};
let frame = frame?;
Expand Down

0 comments on commit 0916848

Please sign in to comment.