mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42: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 {
|
func newSentinel(clOpt *Options) *sentinelClient {
|
||||||
opt := clOpt.options()
|
opt := clOpt.options()
|
||||||
|
opt.Password = ""
|
||||||
|
opt.DB = 0
|
||||||
dialer := func() (net.Conn, error) {
|
dialer := func() (net.Conn, error) {
|
||||||
return net.DialTimeout("tcp", clOpt.Addr, opt.DialTimeout)
|
return net.DialTimeout("tcp", clOpt.Addr, opt.DialTimeout)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user