Skip to content

Commit

Permalink
WIP fix internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Sep 12, 2023
1 parent b7109c0 commit 10c37b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meilisearch/src/routes/indexes/documents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ async fn document_addition(

if let Some(s3) = s3 {
let mut reader = BufReader::new(&*update_file);
s3.put_object_stream(&mut reader, format!("/update-files/{}", uuid)).unwrap();
match s3.put_object_stream(&mut reader, format!("/update-files/{}", uuid)) {
Ok(_) | Err(s3::error::S3Error::Http(_, _)) => (),
Err(e) => panic!("Error {}", e),
}
}

// we NEED to persist the file here because we moved the `udpate_file` in another task.
Expand Down

0 comments on commit 10c37b4

Please sign in to comment.