From eef480efb110dd6b855613df0cc681d97e65f038 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Fri, 10 May 2024 21:55:54 +0800 Subject: [PATCH] add etcd --- pkg/common/discoveryregister/discoveryregister.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/common/discoveryregister/discoveryregister.go b/pkg/common/discoveryregister/discoveryregister.go index da1822f36..0868e6f51 100644 --- a/pkg/common/discoveryregister/discoveryregister.go +++ b/pkg/common/discoveryregister/discoveryregister.go @@ -33,6 +33,7 @@ const ( // 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) { + return getcd.NewSvcDiscoveryRegistry("openim", []string{"http://localhost:2379"}) switch share.Env { case zookeeperConst: