增加redis连接初始化

This commit is contained in:
白茶清欢 2023-03-09 18:11:17 +08:00
parent eeed66642e
commit 4a418d1d41

View File

@ -42,6 +42,9 @@ func InitWithCfgFile(cfgFilePath string) error {
if err := c.loadConfig(cfgFilePath); nil != err {
return err
}
if err := c.init(); nil != err {
return err
}
Client = c
return nil
}