aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-02-23 18:46:25 +0100
committerAlex Auvolat <alex@adnab.me>2021-02-23 18:46:25 +0100
commit40763fd749f36fe612f20f79ff7cac51252cc128 (patch)
treec43e3a8190a3323a93a7253c8095e33add817a7f /src/api/api_server.rs
parent6e6f7e8555ad488a8b4d67ba640ddad933aa2654 (diff)
downloadgarage-40763fd749f36fe612f20f79ff7cac51252cc128.tar.gz
garage-40763fd749f36fe612f20f79ff7cac51252cc128.zip
Cargo fmt
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index c3e205ab..c6b1d483 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -160,10 +160,15 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
} else if params.contains_key(&"uploadid".to_string()) {
// CompleteMultipartUpload call
let upload_id = params.get("uploadid").unwrap();
- Ok(
- handle_complete_multipart_upload(garage, req, &bucket, &key, upload_id, content_sha256)
- .await?,
+ Ok(handle_complete_multipart_upload(
+ garage,
+ req,
+ &bucket,
+ &key,
+ upload_id,
+ content_sha256,
)
+ .await?)
} else {
Err(Error::BadRequest(format!(
"Not a CreateMultipartUpload call, what is it?"