mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-05-02 16:52:10 +00:00
fix multipart bug with empty payload
This commit is contained in:
@ -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?;
|
||||
|
Reference in New Issue
Block a user