mirror of
				https://github.com/redis/go-redis.git
				synced 2025-10-30 16:45:34 +03:00 
			
		
		
		
	Remove getAddrs.
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user