Skip to content

Commit

Permalink
fix the env name of syncer config
Browse files Browse the repository at this point in the history
  • Loading branch information
willyrgf committed Oct 25, 2020
1 parent f54ea23 commit 3a3145f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func getDefaultConfig(file string) (fileConfig string) {
}

func viperCfg() {
configFile = getDefaultConfig(getEnvConfig("CONF"))
configFile = getDefaultConfig(getEnvConfig("SYNCER_CONF"))
dir, file := filepath.Split(configFile)
file = strings.TrimSuffix(file, filepath.Ext(file))
viper.AddConfigPath(dir)
Expand Down

0 comments on commit 3a3145f

Please sign in to comment.