Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Autumn-27 authored Jun 12, 2024
1 parent 60cb903 commit 953b7b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/system/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,16 @@ func InitDb() bool {
}

func GetMongbClient() {
SlogDebugLocal("GetMongbClient begin")
fmt.Println("GetMongbClient begin")
MongoClient, _ = mongdbClient.Connect(AppConfig.Mongodb.Username, AppConfig.Mongodb.Password, AppConfig.Mongodb.IP, AppConfig.Mongodb.Port)
SlogDebugLocal("GetMongbClient end")
fmt.Println("GetMongbClient end")
}
func GetRedisClient() {
SlogDebugLocal("GetRedisClient begin")
fmt.Println("GetRedisClient begin")
redisAddr := AppConfig.Redis.IP + ":" + AppConfig.Redis.Port
redisPassword := AppConfig.Redis.Password
RedisClient, _ = redisClient.NewRedisClient(redisAddr, redisPassword, 0)
SlogDebugLocal("GetRedisClient end")
fmt.Println("GetRedisClient end")
}

func checkKsubdomain() bool {
Expand Down

0 comments on commit 953b7b7

Please sign in to comment.