From 4bda9c6e5bab4fbf341ac5e32126d0408c9e5055 Mon Sep 17 00:00:00 2001 From: Alexander Zavorotynskiy Date: Thu, 30 Jun 2022 16:12:06 +0200 Subject: [PATCH] feat(backend/storage): set retention env variable as not required --- backend/pkg/storage/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/pkg/storage/s3.go b/backend/pkg/storage/s3.go index 3e66aa579..67ebaaf4f 100644 --- a/backend/pkg/storage/s3.go +++ b/backend/pkg/storage/s3.go @@ -3,6 +3,7 @@ package storage import ( "io" "net/url" + "os" "sort" "strconv" @@ -103,7 +104,7 @@ func (s3 *S3) GetFrequentlyUsedKeys(projectID uint64) ([]string, error) { func loadFileTag() string { // Load file tag from env key := "retention" - value := env.String("RETENTION") + value := os.Getenv("RETENTION") if value == "" { value = "default" }