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