test cobra

This commit is contained in:
wangchuxiao 2023-03-07 20:32:57 +08:00
parent 2c91185102
commit e7f6f0f93e

View File

@ -29,7 +29,7 @@ func run(rootCmd cmd.RootCmd) error {
if port == 0 {
port = config.Config.Api.GinPort[0]
}
zk, err := openKeeper.NewClient(nil, "", 10, "", "")
zk, err := openKeeper.NewClient(config.Config.Zookeeper.ZkAddr, "", 10, "", "")
if err != nil {
return err
}