1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

Set Ring.Username

This commit is contained in:
Vladimir Mihailenco
2020-06-12 09:28:14 +03:00
parent 3152667bb5
commit 888328aef2
4 changed files with 17 additions and 12 deletions

View File

@ -67,8 +67,8 @@ type RingOptions struct {
OnConnect func(ctx context.Context, cn *Conn) error
Username string
DB int
Password string
DB int
MaxRetries int
MinRetryBackoff time.Duration
@ -120,8 +120,9 @@ func (opt *RingOptions) clientOptions() *Options {
Dialer: opt.Dialer,
OnConnect: opt.OnConnect,
DB: opt.DB,
Username: opt.Username,
Password: opt.Password,
DB: opt.DB,
DialTimeout: opt.DialTimeout,
ReadTimeout: opt.ReadTimeout,