feat(backend/storage): set retention env variable as not required
This commit is contained in:
parent
44a6e04d13
commit
4bda9c6e5b
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue