remove code
This commit is contained in:
parent
8ee691e938
commit
3c9b925d73
22
client.go
22
client.go
@ -99,28 +99,6 @@ func (c *client) BatchAddWithConfigDir(cfgDir string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// getMysqlCfgFileList 获取mysql配置文件列表
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 14:39 2022/6/9
|
||||
func (c *client) getMysqlCfgFileList(cfgDir string) ([]string, error) {
|
||||
filepathNames, _ := filepath.Glob(filepath.Join(cfgDir, "*"))
|
||||
|
||||
cfgFileList := make([]*cfgFile, 0)
|
||||
for i := range filepathNames {
|
||||
var (
|
||||
err error
|
||||
cfgInfo *cfgFile
|
||||
)
|
||||
if cfgInfo, err = c.getCfg(filepathNames[i]); nil != err {
|
||||
return nil, err
|
||||
}
|
||||
cfgFileList = append(cfgFileList, cfgInfo)
|
||||
}
|
||||
return cfgFileList, nil
|
||||
}
|
||||
|
||||
// getCfg 读取配置
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
|
Loading…
Reference in New Issue
Block a user