Skip to content
Snippets Groups Projects
Commit 7bb7fe32 authored by 邹毅贤's avatar 邹毅贤
Browse files

fix code problems

parent c7138373
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,16 @@ func (n *nacosDynamicConfiguration) RemoveListener(key string, listener config_c ...@@ -76,7 +76,16 @@ func (n *nacosDynamicConfiguration) RemoveListener(key string, listener config_c
//nacos distinguishes configuration files based on group and dataId. defalut group = "dubbo" and dataId = key //nacos distinguishes configuration files based on group and dataId. defalut group = "dubbo" and dataId = key
func (n *nacosDynamicConfiguration) GetProperties(key string, opts ...config_center.Option) (string, error) { func (n *nacosDynamicConfiguration) GetProperties(key string, opts ...config_center.Option) (string, error) {
return n.GetRule(key, opts...)
}
// GetInternalProperty Get properties value by key
func (n *nacosDynamicConfiguration) GetInternalProperty(key string, opts ...config_center.Option) (string, error) {
return n.GetProperties(key, opts...)
}
// GetRule Get router rule
func (n *nacosDynamicConfiguration) GetRule(key string, opts ...config_center.Option) (string, error) {
tmpOpts := &config_center.Options{} tmpOpts := &config_center.Options{}
for _, opt := range opts { for _, opt := range opts {
opt(tmpOpts) opt(tmpOpts)
...@@ -90,17 +99,6 @@ func (n *nacosDynamicConfiguration) GetProperties(key string, opts ...config_cen ...@@ -90,17 +99,6 @@ func (n *nacosDynamicConfiguration) GetProperties(key string, opts ...config_cen
} else { } else {
return string(content), nil return string(content), nil
} }
}
// GetInternalProperty Get properties value by key
func (n *nacosDynamicConfiguration) GetInternalProperty(key string, opts ...config_center.Option) (string, error) {
return n.GetProperties(key, opts...)
}
// GetRule Get router rule
func (n *nacosDynamicConfiguration) GetRule(key string, opts ...config_center.Option) (string, error) {
return n.GetProperties(key, opts...)
} }
// Parser Get Parser // Parser Get Parser
......
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