feat(backend/storage): set retention env variable as not required

This commit is contained in:
Alexander Zavorotynskiy 2022-06-30 16:12:06 +02:00
parent 44a6e04d13
commit 4bda9c6e5b

View file

@ -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"
}