diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-09 16:40:45 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-09 16:40:45 +0200 |
commit | 1c2e5d9c369057676fdbd931108798f6b05f00dc (patch) | |
tree | 1651c8593f26af305c578466497ceb7ae7f77c20 /src/api/s3/api_server.rs | |
parent | fe5cf8a530cb3888451612465afa9ba0f44dc3a7 (diff) | |
download | garage-1c2e5d9c369057676fdbd931108798f6b05f00dc.tar.gz garage-1c2e5d9c369057676fdbd931108798f6b05f00dc.zip |
Quotas are now applied on uploads
Diffstat (limited to 'src/api/s3/api_server.rs')
-rw-r--r-- | src/api/s3/api_server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/s3/api_server.rs b/src/api/s3/api_server.rs index ecc417ab..cc3f7432 100644 --- a/src/api/s3/api_server.rs +++ b/src/api/s3/api_server.rs @@ -219,7 +219,7 @@ impl ApiHandler for S3ApiServer { .await } Endpoint::PutObject { key } => { - handle_put(garage, req, bucket_id, &key, content_sha256).await + handle_put(garage, req, &bucket, &key, content_sha256).await } Endpoint::AbortMultipartUpload { key, upload_id } => { handle_abort_multipart_upload(garage, bucket_id, &key, &upload_id).await @@ -233,7 +233,7 @@ impl ApiHandler for S3ApiServer { garage, req, &bucket_name, - bucket_id, + &bucket, &key, &upload_id, content_sha256, |