From fc0565a85b09e4e3223643e5a9f135b51a207029 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 8 Apr 2015 12:28:50 +0300 Subject: [PATCH] Remove getAddrs. --- cluster.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cluster.go b/cluster.go index fdf0f840..e0f2b408 100644 --- a/cluster.go +++ b/cluster.go @@ -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,