Skip to content

Commit

Permalink
Added constants for s3 storage
Browse files Browse the repository at this point in the history
  • Loading branch information
wwoytenko committed Apr 4, 2024
1 parent 5f6d9cb commit 91a2a21
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/storages/s3/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
package s3

const (
defaultMaxRetries = 3
defaultMaxPartSize = 50 * 1024 * 1024
defaultMaxRetries = 3
defaultMaxPartSize = 50 * 1024 * 1024
defaultStorageClass = "STANDARD"
defaultForcePath = true
)

type Config struct {
Expand All @@ -43,8 +45,8 @@ type Config struct {

func NewConfig() *Config {
return &Config{
StorageClass: "STANDARD",
ForcePathStyle: true,
StorageClass: defaultStorageClass,
ForcePathStyle: defaultForcePath,
MaxRetries: defaultMaxRetries,
MaxPartSize: defaultMaxPartSize,
}
Expand Down

0 comments on commit 91a2a21

Please sign in to comment.