pull/2318/head
skiffer-git 6 months ago
parent 6bc6cf898f
commit 1b3bc6a6f6

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

Loading…
Cancel
Save