Skip to content
Snippets Groups Projects
Commit 48ef7bee authored by jialiang's avatar jialiang
Browse files

fix: panic when checkRegistries

parent 3292b7b2
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ type ConsumerConfig struct {
ConnectTimeout time.Duration
Registry *RegistryConfig `yaml:"registry" json:"registry,omitempty" property:"registry"`
Registries map[string]*RegistryConfig `yaml:"registries" json:"registries,omitempty" property:"registries"`
Registries map[string]*RegistryConfig `default:"{}" yaml:"registries" json:"registries" property:"registries"`
Request_Timeout string `yaml:"request_timeout" default:"5s" json:"request_timeout,omitempty" property:"request_timeout"`
RequestTimeout time.Duration
......
......@@ -48,7 +48,7 @@ type ProviderConfig struct {
ConfigType map[string]string `yaml:"config_type" json:"config_type,omitempty" property:"config_type"`
Registry *RegistryConfig `yaml:"registry" json:"registry,omitempty" property:"registry"`
Registries map[string]*RegistryConfig `yaml:"registries" json:"registries,omitempty" property:"registries"`
Registries map[string]*RegistryConfig `default:"{}" yaml:"registries" json:"registries,omitempty" property:"registries"`
}
// UnmarshalYAML unmarshals the ProviderConfig by @unmarshal function
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment