Skip to content

Commit

Permalink
fix: config
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 16, 2024
1 parent f220f5b commit 159cf13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfgldr/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func LoadConfig() (*Config, error) {
appCfgLdr := viper.New()
appCfgLdr.SetEnvPrefix("APP")
appCfgLdr.AutomaticEnv()
dbCfgLdr.AllowEmptyEnv(false)
appCfgLdr.AllowEmptyEnv(false)
appConfig := App{}
if err := appCfgLdr.Unmarshal(&appConfig); err != nil {
return nil, err
Expand All @@ -49,7 +49,7 @@ func LoadConfig() (*Config, error) {
bucketCfgLdr := viper.New()
bucketCfgLdr.SetEnvPrefix("BUCKET")
bucketCfgLdr.AutomaticEnv()
dbCfgLdr.AllowEmptyEnv(false)
bucketCfgLdr.AllowEmptyEnv(false)
bucketConfig := Bucket{}
if err := bucketCfgLdr.Unmarshal(&bucketConfig); err != nil {
return nil, err
Expand Down

0 comments on commit 159cf13

Please sign in to comment.