test-errcode
wangchuxiao 2 years ago
parent b6f20d1772
commit 1ab8e42dd8

@ -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
}

Loading…
Cancel
Save