aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-10 11:03:01 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-10 11:03:01 +0200
commit8bbd0db43d568f10f19e5d68c7ef68b5ed2dad35 (patch)
treea8fbb91129cfb6ebb73a4c32f6fd1f78d77fd1a6 /src
parent9695e747e6bf8b0422dd5f3e0dfbac229addc5f8 (diff)
downloadgarage-8bbd0db43d568f10f19e5d68c7ef68b5ed2dad35.tar.gz
garage-8bbd0db43d568f10f19e5d68c7ef68b5ed2dad35.zip
reformat a bit
Diffstat (limited to 'src')
-rw-r--r--src/api/s3/put.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/s3/put.rs b/src/api/s3/put.rs
index 5a7af4c7..ab56e237 100644
--- a/src/api/s3/put.rs
+++ b/src/api/s3/put.rs
@@ -259,8 +259,10 @@ async fn check_quotas(
if let Some(ms) = quotas.max_size {
let current_size = counters.get(BYTES).cloned().unwrap_or_default();
if cnt_size_diff > 0 && current_size + cnt_size_diff > ms as i64 {
- return Err(Error::forbidden(format!("Bucket size quota is reached, maximum total sie of objects for this bucket: {}. The bucket is already {} bytes, and this object would add {} bytes.", ms,
- current_size, size)));
+ return Err(Error::forbidden(format!(
+ "Bucket size quota is reached, maximum total sie of objects for this bucket: {}. The bucket is already {} bytes, and this object would add {} bytes.",
+ ms, current_size, size
+ )));
}
}