mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-13 13:35:59 +08:00
test cobra
This commit is contained in:
@@ -499,11 +499,9 @@ func (c *config) unmarshalConfig(config interface{}, configPath string) error {
|
||||
|
||||
func (c *config) initConfig(config interface{}, configName, configPath string) error {
|
||||
if configPath == "" {
|
||||
if configPath == "" {
|
||||
configPath = DefaultPath
|
||||
}
|
||||
configPath = DefaultPath
|
||||
}
|
||||
_, err := os.Stat(configPath)
|
||||
_, err := os.Stat(filepath.Join(configPath, configName))
|
||||
if os.IsNotExist(err) {
|
||||
configPath = filepath.Join(Root, "config", configName)
|
||||
}
|
||||
|
||||
@@ -325,3 +325,5 @@ const BigVersion = "v2"
|
||||
const LogFileName = "OpenIM.log"
|
||||
|
||||
const CurrentVersion = "v2.3.4-rc0"
|
||||
|
||||
const LocalHost = "0.0.0.0"
|
||||
|
||||
Reference in New Issue
Block a user