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
1 changed files with 2 additions and 0 deletions

View File

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