增加redis连接初始化
This commit is contained in:
parent
eeed66642e
commit
4a418d1d41
@ -42,6 +42,9 @@ func InitWithCfgFile(cfgFilePath string) error {
|
|||||||
if err := c.loadConfig(cfgFilePath); nil != err {
|
if err := c.loadConfig(cfgFilePath); nil != err {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := c.init(); nil != err {
|
||||||
|
return err
|
||||||
|
}
|
||||||
Client = c
|
Client = c
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user