This commit is contained in:
lwl0608 2024-05-16 21:59:45 +08:00
parent 873e2dbe55
commit 5cc1fb426b
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ func main() {
//初始化redis //初始化redis
err = redis.Init(cfg.RedisConfig) err = redis.Init(cfg.RedisConfig)
if err != nil { if err != nil {
fmt.Printf("Redis init fail, path: %v, err: %v", configPath, err) msg := fmt.Sprintf("Redis init fail, path: %v, err: %v", configPath, err)
return PrintAndExit(msg)
} }
// 初始化服务发现 // 初始化服务发现