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

fix review problems

parent 9140a02d
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,7 @@ func (c *URL) GetBackupUrls() []*URL {
WithUsername(c.Username),
WithPassword(c.Password),
WithPort(port),
WithParams(c.Params))
WithParams(c.params))
urls = append(urls, newURL)
}
......
......@@ -18,7 +18,6 @@ package config
import (
"encoding/base64"
"fmt"
"io/ioutil"
"net/url"
"os"
......
......@@ -44,10 +44,6 @@ type DynamicConfiguration interface {
//GetInternalProperty get value by key in Default properties file(dubbo.properties)
GetInternalProperty(string, ...Option) (string, error)
GetConfig(string, ...Option) (string, error)
SetConfig(string, string, string) error
GetConfigs(string, ...Option) (string, error)
}
type Options struct {
......
......@@ -97,15 +97,6 @@ func (c *MockDynamicConfiguration) GetConfig(key string, opts ...Option) (string
return c.content, nil
}
func (c *mockDynamicConfiguration) SetConfig(group string, key string, value string) error {
return nil
}
//For zookeeper, getConfig and getConfigs have the same meaning.
func (c *MockDynamicConfiguration) GetConfigs(key string, opts ...Option) (string, error) {
return c.GetConfig(key, opts...)
}
func (c *MockDynamicConfiguration) Parser() parser.ConfigurationParser {
return c.parser
}
......
......@@ -118,7 +118,7 @@ func Test_List(t *testing.T) {
registryDirectory, _ := normalRegistryDir()
time.Sleep(1e9)
invokers, _ := registryDirectory.List(&invocation.RPCInvocation{})
invokers := registryDirectory.List(&invocation.RPCInvocation{})
assert.Len(t, invokers, 3)
assert.Equal(t, true, registryDirectory.IsAvailable())
......
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