garage_api(fixup): Fix typo on Multipart Upload parsing function

This commit is contained in:
Jill 2022-01-14 14:18:08 +01:00
parent 7550d230df
commit 9a22c9905b
Signed by: KokaKiwi
GPG key ID: 09A5A2688F13FAC1

View file

@ -511,7 +511,7 @@ pub async fn handle_complete_multipart_upload(
}
let body_xml = roxmltree::Document::parse(std::str::from_utf8(&body)?)?;
let body_list_of_parts = parse_complete_multpart_upload_body(&body_xml)
let body_list_of_parts = parse_complete_multipart_upload_body(&body_xml)
.ok_or_bad_request("Invalid CompleteMultipartUpload XML")?;
debug!(
"CompleteMultipartUpload list of parts: {:?}",
@ -703,7 +703,7 @@ struct CompleteMultipartUploadPart {
part_number: u64,
}
fn parse_complete_multpart_upload_body(
fn parse_complete_multipart_upload_body(
xml: &roxmltree::Document,
) -> Option<Vec<CompleteMultipartUploadPart>> {
let mut parts = vec![];