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

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

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

Loading…
Cancel
Save