diff --git a/cmd/peer-s3-client.go b/cmd/peer-s3-client.go index 62393594d..5c14523ba 100644 --- a/cmd/peer-s3-client.go +++ b/cmd/peer-s3-client.go @@ -158,7 +158,7 @@ func (sys *S3PeerSys) GetBucketInfo(ctx context.Context, bucket string, opts Buc if err != nil { return err } - bucketInfos[idx] = bucketInfo + bucketInfos[idx+1] = bucketInfo return nil }, idx) }