fix madmin SetBucketQuota API signature (#9669)

This commit is contained in:
poornas 2020-05-21 14:45:12 -07:00 committed by GitHub
parent cdf4815a6b
commit f1f414ca59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,11 +91,8 @@ func (adm *AdminClient) GetBucketQuota(ctx context.Context, bucket string) (q Bu
// SetBucketQuota - sets a bucket's quota, if quota is set to '0'
// quota is disabled.
func (adm *AdminClient) SetBucketQuota(ctx context.Context, bucket string, quota uint64, quotaType QuotaType) error {
data, err := json.Marshal(BucketQuota{
Quota: quota,
Type: quotaType,
})
func (adm *AdminClient) SetBucketQuota(ctx context.Context, bucket string, quota *BucketQuota) error {
data, err := json.Marshal(quota)
if err != nil {
return err
}