Skip to content

Commit

Permalink
fix invalid min part size (5MiB instead of 5MB)
Browse files Browse the repository at this point in the history
  • Loading branch information
stv0g committed Jun 10, 2022
1 parent 0603e29 commit aa7bfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
GOSE_ACCESS_KEY: "admin-user" # changeme!
GOSE_SECRET_KEY: "admin-pass" # changeme!
GOSE_MAX_UPLOAD_SIZE: "50GB"
GOSE_PART_SIZE: "5MB"
GOSE_PART_SIZE: "16MB"
depends_on:
- minio

Expand Down
6 changes: 3 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (

const (
// MinPartSize is the minimally supported part size for an S3 multi-part upload part.
MinPartSize size = 5e6 // 5MB
MinPartSize size = 5 << 20 // 5MiB

// DefaultPartSize is the default size of the chunks used for Multi-part Upload if not provided by the configuration
DefaultPartSize size = 16e6 // 16MB
DefaultPartSize size = 16 << 20 // 16MiB

// DefaultMaxUploadSize is the maximum upload size if not provided by the configuration
DefaultMaxUploadSize size = 1e12 // 1TB
DefaultMaxUploadSize size = 1 << 40 // 1TiB

// DefaultRegion is the default S3 region if not provided by the configuration
DefaultRegion = "us-east-1"
Expand Down

0 comments on commit aa7bfbd

Please sign in to comment.