mirror of
https://github.com/redis/go-redis.git
synced 2025-08-08 23:42:06 +03:00
Option types must propagage missing fields (#2726)
* must propagage missing fields Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com> * remove credentials provider from ring --------- Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com> Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
@@ -79,6 +79,8 @@ type FailoverOptions struct {
|
||||
ConnMaxLifetime time.Duration
|
||||
|
||||
TLSConfig *tls.Config
|
||||
|
||||
DisableIndentity bool
|
||||
}
|
||||
|
||||
func (opt *FailoverOptions) clientOptions() *Options {
|
||||
@@ -113,6 +115,8 @@ func (opt *FailoverOptions) clientOptions() *Options {
|
||||
ConnMaxLifetime: opt.ConnMaxLifetime,
|
||||
|
||||
TLSConfig: opt.TLSConfig,
|
||||
|
||||
DisableIndentity: opt.DisableIndentity,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user