mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
Sentinel client does not support password and db options.
This commit is contained in:
parent
537971dca1
commit
3c565a35a9
@ -79,6 +79,8 @@ type sentinelClient struct {
|
||||
|
||||
func newSentinel(clOpt *Options) *sentinelClient {
|
||||
opt := clOpt.options()
|
||||
opt.Password = ""
|
||||
opt.DB = 0
|
||||
dialer := func() (net.Conn, error) {
|
||||
return net.DialTimeout("tcp", clOpt.Addr, opt.DialTimeout)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user