From f1f414ca59cf2d4865329bd658f19e016fc065fe Mon Sep 17 00:00:00 2001 From: poornas Date: Thu, 21 May 2020 14:45:12 -0700 Subject: [PATCH] fix madmin SetBucketQuota API signature (#9669) --- pkg/madmin/quota-commands.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/madmin/quota-commands.go b/pkg/madmin/quota-commands.go index baceb4be9..4a142b5e3 100644 --- a/pkg/madmin/quota-commands.go +++ b/pkg/madmin/quota-commands.go @@ -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 }