mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-09-05 15:12:16 +08:00
fix(core): restore discovery register API compatibility
This commit is contained in:
parent
d11ea11552
commit
d21accfc51
@ -29,7 +29,7 @@ import (
|
||||
)
|
||||
|
||||
// NewDiscoveryRegister creates a new service discovery and registry client based on the provided environment type.
|
||||
func NewDiscoveryRegister(discovery *config.Discovery, watchNames []string) (discovery.SvcDiscoveryRegistry, error) {
|
||||
func NewDiscoveryRegister(discovery *config.Discovery, share *config.Share, watchNames []string) (discovery.SvcDiscoveryRegistry, error) {
|
||||
runtimeEnvironment := runtimeenv.RuntimeEnvironment()
|
||||
discoveryType := discovery.Enable
|
||||
if discoveryType == "" && runtimeEnvironment == config.KUBERNETES {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user