升级redis初始化

This commit is contained in:
白茶清欢 2023-03-09 18:16:23 +08:00
parent 4a418d1d41
commit 5164125ff4

View File

@ -64,6 +64,9 @@ func InitWithCfgDir(cfgDir string) error {
if err := c.batchLoadConfig(cfgDir); nil != err {
return err
}
if err := c.init(); nil != err {
return err
}
Client = c
return nil
}
@ -85,6 +88,9 @@ func InitWithCfgFileList(cfgFileList []string) error {
return err
}
}
if err := c.init(); nil != err {
return err
}
Client = c
return nil
}