pull/2318/head
skiffer-git 5 months ago
parent 39b32fa699
commit dfa20538f4

@ -1,13 +1,16 @@
enable: "etcd"
etcd:
rootDirectory: openim
address: [ localhost:12379 ]
schema: openim
address: [ http://localhost:2379 ]
username: ''
password: ''
zookeeper:
schema: openim
address: [ localhost:12181 ]
username: ''
password: ''

@ -46,7 +46,7 @@ func NewDiscoveryRegister(zookeeperConfig *config.ZooKeeper, share *config.Share
case kubenetesConst:
return kubernetes.NewK8sDiscoveryRegister(share.RpcRegisterName.MessageGateway)
case etcdConst:
return getcd.NewSvcDiscoveryRegistry("etcd", []string{"http://localhost:2379"})
return getcd.NewSvcDiscoveryRegistry("etcd", []string{"localhost:2379"})
case directConst:
//return direct.NewConnDirect(config)
default:

Loading…
Cancel
Save