1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add RingOptions.OnNewShard

This commit is contained in:
Vladimir Mihailenco
2019-08-23 14:46:40 +03:00
parent 472322938c
commit 0c4c236793
2 changed files with 16 additions and 4 deletions

View File

@ -114,7 +114,7 @@ func (opt *Options) init() {
if opt.TLSConfig == nil {
return netDialer.DialContext(ctx, network, addr)
}
return tls.DialWithDialer(netDialer, opt.Network, opt.Addr, opt.TLSConfig)
return tls.DialWithDialer(netDialer, network, addr, opt.TLSConfig)
}
}
if opt.PoolSize == 0 {