Skip to content

Commit

Permalink
define default tmp_dir as a const variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-zanutto authored Apr 1, 2024
1 parent 89ff76f commit 78963f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/domains/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ var (
once sync.Once
)

const defaultDirectoryStoragePath = "/tmp"

func NewConfig() *Config {
once.Do(
func() {
Cfg = &Config{
Common: Common{
TempDirectory: "/tmp",
TempDirectory: defaultDirectoryStoragePath,
},
Storage: StorageConfig{
S3: s3.NewConfig(),
Expand Down

0 comments on commit 78963f2

Please sign in to comment.