1
0
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:
Vladimir Mihailenco 2014-07-12 10:00:21 +03:00
parent 537971dca1
commit 3c565a35a9

View File

@ -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)
}