mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +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:
@ -65,6 +65,8 @@ type UniversalOptions struct {
|
||||
// Only failover clients.
|
||||
|
||||
MasterName string
|
||||
|
||||
DisableIndentity bool
|
||||
}
|
||||
|
||||
// Cluster returns cluster options created from the universal options.
|
||||
@ -108,6 +110,8 @@ func (o *UniversalOptions) Cluster() *ClusterOptions {
|
||||
ConnMaxLifetime: o.ConnMaxLifetime,
|
||||
|
||||
TLSConfig: o.TLSConfig,
|
||||
|
||||
DisableIndentity: o.DisableIndentity,
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,6 +155,8 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
|
||||
ConnMaxLifetime: o.ConnMaxLifetime,
|
||||
|
||||
TLSConfig: o.TLSConfig,
|
||||
|
||||
DisableIndentity: o.DisableIndentity,
|
||||
}
|
||||
}
|
||||
|
||||
@ -191,6 +197,8 @@ func (o *UniversalOptions) Simple() *Options {
|
||||
ConnMaxLifetime: o.ConnMaxLifetime,
|
||||
|
||||
TLSConfig: o.TLSConfig,
|
||||
|
||||
DisableIndentity: o.DisableIndentity,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user