mirror of
https://github.com/redis/go-redis.git
synced 2025-07-23 21:01:00 +03:00
Sentinel client does not support password and db options.
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user