fix: initiateUpload sign list number (#1358)

* optimize scheduled deletion

* optimize scheduled deletion

* optimize scheduled deletion

* optimize scheduled deletion

* minio cache

* fix: conflicts

* feat: minio cache

* feat: cache optimize

* feat: cache optimize

* feat: cache optimize

* feat: cache optimize

* feat: cache optimize

* fix: initiateUpload sign list number
pull/1374/head
chao 1 year ago committed by GitHub
parent 82a8f3351f
commit 194a94cb8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -144,7 +144,7 @@ func (c *Controller) InitiateUpload(ctx context.Context, hash string, size int64
} }
var authSign *s3.AuthSignResult var authSign *s3.AuthSignResult
if maxParts > 0 { if maxParts > 0 {
partNumbers := make([]int, partNumber) partNumbers := make([]int, maxParts)
for i := 0; i < maxParts; i++ { for i := 0; i < maxParts; i++ {
partNumbers[i] = i + 1 partNumbers[i] = i + 1
} }

Loading…
Cancel
Save