File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ type Options struct {
142
142
// Enables read only queries on slave/follower nodes.
143
143
readOnly bool
144
144
145
- // // Disable set-lib on connect. Default is false.
145
+ // Disable set-lib on connect. Default is false.
146
146
DisableIndentity bool
147
147
}
148
148
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ type RingOptions struct {
84
84
WriteTimeout time.Duration
85
85
ContextTimeoutEnabled bool
86
86
87
+ ContextTimeoutEnabled bool
88
+
87
89
// PoolFIFO uses FIFO mode for each node connection pool GET/PUT (default LIFO).
88
90
PoolFIFO bool
89
91
@@ -97,6 +99,8 @@ type RingOptions struct {
97
99
98
100
TLSConfig * tls.Config
99
101
Limiter Limiter
102
+
103
+ DisableIndentity bool
100
104
}
101
105
102
106
func (opt * RingOptions ) init () {
@@ -151,6 +155,8 @@ func (opt *RingOptions) clientOptions() *Options {
151
155
WriteTimeout : opt .WriteTimeout ,
152
156
ContextTimeoutEnabled : opt .ContextTimeoutEnabled ,
153
157
158
+ ContextTimeoutEnabled : opt .ContextTimeoutEnabled ,
159
+
154
160
PoolFIFO : opt .PoolFIFO ,
155
161
PoolSize : opt .PoolSize ,
156
162
PoolTimeout : opt .PoolTimeout ,
@@ -162,6 +168,8 @@ func (opt *RingOptions) clientOptions() *Options {
162
168
163
169
TLSConfig : opt .TLSConfig ,
164
170
Limiter : opt .Limiter ,
171
+
172
+ DisableIndentity : opt .DisableIndentity ,
165
173
}
166
174
}
167
175
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ type FailoverOptions struct {
79
79
ConnMaxLifetime time.Duration
80
80
81
81
TLSConfig * tls.Config
82
+
83
+ DisableIndentity bool
82
84
}
83
85
84
86
func (opt * FailoverOptions ) clientOptions () * Options {
@@ -113,6 +115,8 @@ func (opt *FailoverOptions) clientOptions() *Options {
113
115
ConnMaxLifetime : opt .ConnMaxLifetime ,
114
116
115
117
TLSConfig : opt .TLSConfig ,
118
+
119
+ DisableIndentity : opt .DisableIndentity ,
116
120
}
117
121
}
118
122
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ type UniversalOptions struct {
65
65
// Only failover clients.
66
66
67
67
MasterName string
68
+
69
+ DisableIndentity bool
68
70
}
69
71
70
72
// Cluster returns cluster options created from the universal options.
@@ -108,6 +110,8 @@ func (o *UniversalOptions) Cluster() *ClusterOptions {
108
110
ConnMaxLifetime : o .ConnMaxLifetime ,
109
111
110
112
TLSConfig : o .TLSConfig ,
113
+
114
+ DisableIndentity : o .DisableIndentity ,
111
115
}
112
116
}
113
117
@@ -151,6 +155,8 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
151
155
ConnMaxLifetime : o .ConnMaxLifetime ,
152
156
153
157
TLSConfig : o .TLSConfig ,
158
+
159
+ DisableIndentity : o .DisableIndentity ,
154
160
}
155
161
}
156
162
@@ -191,6 +197,8 @@ func (o *UniversalOptions) Simple() *Options {
191
197
ConnMaxLifetime : o .ConnMaxLifetime ,
192
198
193
199
TLSConfig : o .TLSConfig ,
200
+
201
+ DisableIndentity : o .DisableIndentity ,
194
202
}
195
203
}
196
204
You can’t perform that action at this time.
0 commit comments