Skip to content

Commit

Permalink
fix:update parse.go
Browse files Browse the repository at this point in the history
  • Loading branch information
luhaoling committed Nov 8, 2023
1 parent b711c0a commit ae06e7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/common/config/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func findConfigPath(configFile string) (string, error) {

// Second, check for OPENIMCONFIG environment variable
//envConfigPath := os.Getenv(Constant.OpenIMConfig)
envConfigPath := os.Getenv("aaa")
envConfigPath := os.Getenv(Constant.OpenIMConfig)
if envConfigPath != "" {
if _, err := findConfigFile([]string{envConfigPath}); err != nil {
return "", errors.New("the environment path config path is error")
Expand Down
1 change: 0 additions & 1 deletion pkg/common/constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const (
ConfigPath = "/config/config.yaml"

OpenIMConfig = "OpenIMConfig" // environment variables
Default = "../../../config/config.yaml"
)

const (
Expand Down

0 comments on commit ae06e7a

Please sign in to comment.