mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +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:
8
ring.go
8
ring.go
@ -84,6 +84,8 @@ type RingOptions struct {
|
||||
WriteTimeout time.Duration
|
||||
ContextTimeoutEnabled bool
|
||||
|
||||
ContextTimeoutEnabled bool
|
||||
|
||||
// PoolFIFO uses FIFO mode for each node connection pool GET/PUT (default LIFO).
|
||||
PoolFIFO bool
|
||||
|
||||
@ -97,6 +99,8 @@ type RingOptions struct {
|
||||
|
||||
TLSConfig *tls.Config
|
||||
Limiter Limiter
|
||||
|
||||
DisableIndentity bool
|
||||
}
|
||||
|
||||
func (opt *RingOptions) init() {
|
||||
@ -151,6 +155,8 @@ func (opt *RingOptions) clientOptions() *Options {
|
||||
WriteTimeout: opt.WriteTimeout,
|
||||
ContextTimeoutEnabled: opt.ContextTimeoutEnabled,
|
||||
|
||||
ContextTimeoutEnabled: opt.ContextTimeoutEnabled,
|
||||
|
||||
PoolFIFO: opt.PoolFIFO,
|
||||
PoolSize: opt.PoolSize,
|
||||
PoolTimeout: opt.PoolTimeout,
|
||||
@ -162,6 +168,8 @@ func (opt *RingOptions) clientOptions() *Options {
|
||||
|
||||
TLSConfig: opt.TLSConfig,
|
||||
Limiter: opt.Limiter,
|
||||
|
||||
DisableIndentity: opt.DisableIndentity,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user