mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-14 15:49:18 +08:00
add etcd
This commit is contained in:
parent
3845eb0965
commit
eef480efb1
@ -33,6 +33,7 @@ const (
|
|||||||
|
|
||||||
// NewDiscoveryRegister creates a new service discovery and registry client based on the provided environment type.
|
// NewDiscoveryRegister creates a new service discovery and registry client based on the provided environment type.
|
||||||
func NewDiscoveryRegister(zookeeperConfig *config.ZooKeeper, share *config.Share) (discovery.SvcDiscoveryRegistry1, error) {
|
func NewDiscoveryRegister(zookeeperConfig *config.ZooKeeper, share *config.Share) (discovery.SvcDiscoveryRegistry1, error) {
|
||||||
|
return getcd.NewSvcDiscoveryRegistry("openim", []string{"http://localhost:2379"})
|
||||||
switch share.Env {
|
switch share.Env {
|
||||||
case zookeeperConst:
|
case zookeeperConst:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user