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