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.
|
// 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,
|
||||||
|
|
Loading…
Reference in New Issue