This commit is contained in:
wangchuxiao 2023-05-09 18:44:42 +08:00
parent b6f20d1772
commit 1ab8e42dd8

View File

@ -41,7 +41,7 @@ func run(port int) error {
var client discoveryregistry.SvcDiscoveryRegistry
client, err = openKeeper.NewClient(config.Config.Zookeeper.ZkAddr, config.Config.Zookeeper.Schema,
openKeeper.WithFreq(time.Hour), openKeeper.WithUserNameAndPassword(config.Config.Zookeeper.UserName,
config.Config.Zookeeper.Password), openKeeper.WithRoundRobin(), openKeeper.WithTimeout(10))
config.Config.Zookeeper.Password), openKeeper.WithTimeout(10))
if err != nil {
return err
}