From 91a2a21372c8153fcc157e6932712b82a0337803 Mon Sep 17 00:00:00 2001 From: Vadim Voitenko Date: Thu, 4 Apr 2024 13:42:59 +0200 Subject: [PATCH] Added constants for s3 storage --- internal/storages/s3/config.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/storages/s3/config.go b/internal/storages/s3/config.go index 975dcd0a..0c5ad765 100644 --- a/internal/storages/s3/config.go +++ b/internal/storages/s3/config.go @@ -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 { @@ -43,8 +45,8 @@ type Config struct { func NewConfig() *Config { return &Config{ - StorageClass: "STANDARD", - ForcePathStyle: true, + StorageClass: defaultStorageClass, + ForcePathStyle: defaultForcePath, MaxRetries: defaultMaxRetries, MaxPartSize: defaultMaxPartSize, }