mirror of https://github.com/go-redis/redis.git
Remove getAddrs.
This commit is contained in:
parent
52a9dd52b7
commit
fc0565a85b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue