diff --git a/client.go b/client.go index 3aabace..2e2c96b 100644 --- a/client.go +++ b/client.go @@ -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 }