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 e6ec640 commit 25f7cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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 @@ -45,7 +45,7 @@ func LoadConfig() (*Config, error) {
serviceCfgLdr := viper.New()
serviceCfgLdr.SetEnvPrefix("SERVICE")
serviceCfgLdr.AutomaticEnv()
dbCfgLdr.AllowEmptyEnv(false)
serviceCfgLdr.AllowEmptyEnv(false)
serviceConfig := Service{}
if err := serviceCfgLdr.Unmarshal(&serviceConfig); err != nil {
return nil, err
Expand Down

0 comments on commit 25f7cee

Please sign in to comment.