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