fix(core): restore discovery register API compatibility

pull/3772/head
dsx137 2 months ago
parent d11ea11552
commit d21accfc51

@ -29,7 +29,7 @@ import (
) )
// 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(discovery *config.Discovery, watchNames []string) (discovery.SvcDiscoveryRegistry, error) { func NewDiscoveryRegister(discovery *config.Discovery, share *config.Share, watchNames []string) (discovery.SvcDiscoveryRegistry, error) {
runtimeEnvironment := runtimeenv.RuntimeEnvironment() runtimeEnvironment := runtimeenv.RuntimeEnvironment()
discoveryType := discovery.Enable discoveryType := discovery.Enable
if discoveryType == "" && runtimeEnvironment == config.KUBERNETES { if discoveryType == "" && runtimeEnvironment == config.KUBERNETES {

Loading…
Cancel
Save