forked from mirror/redis
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…
Reference in New Issue