1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

Fix build

This commit is contained in:
Vladimir Mihailenco
2020-04-19 16:40:26 +03:00
parent 558263e5eb
commit 76f0041b12
2 changed files with 17 additions and 7 deletions

View File

@ -101,7 +101,7 @@ func (opt *RingOptions) init() {
}
}
func (opt *RingOptions) clientOptions(shard string) *Options {
func (opt *RingOptions) clientOptions() *Options {
return &Options{
OnConnect: opt.OnConnect,
@ -378,7 +378,7 @@ func NewRing(opt *RingOptions) *Ring {
}
func newRingShard(opt *RingOptions, name, addr string) *Client {
clopt := opt.clientOptions(name)
clopt := opt.clientOptions()
clopt.Addr = addr
if opt.NewClient != nil {