Remove getAddrs.

This commit is contained in:
Vladimir Mihailenco 2015-04-08 12:28:50 +03:00
parent 52a9dd52b7
commit fc0565a85b
1 changed files with 1 additions and 5 deletions

View File

@ -27,7 +27,7 @@ type ClusterClient struct {
// A list of seed addresses must be provided.
func NewClusterClient(opt *ClusterOptions) *ClusterClient {
client := &ClusterClient{
addrs: opt.getAddrs(),
addrs: opt.Addrs,
clients: make(map[string]*Client),
opt: opt,
_reload: 1,
@ -273,10 +273,6 @@ func (opt *ClusterOptions) getMaxRedirects() int {
return opt.MaxRedirects
}
func (opt *ClusterOptions) getAddrs() []string {
return opt.Addrs
}
func (opt *ClusterOptions) clientOptions() *Options {
return &Options{
DB: 0,