@@ -74,6 +74,7 @@ type FailoverOptions struct {
74
74
PoolTimeout time.Duration
75
75
MinIdleConns int
76
76
MaxIdleConns int
77
+ MaxActiveConns int
77
78
ConnMaxIdleTime time.Duration
78
79
ConnMaxLifetime time.Duration
79
80
@@ -107,6 +108,7 @@ func (opt *FailoverOptions) clientOptions() *Options {
107
108
PoolTimeout : opt .PoolTimeout ,
108
109
MinIdleConns : opt .MinIdleConns ,
109
110
MaxIdleConns : opt .MaxIdleConns ,
111
+ MaxActiveConns : opt .MaxActiveConns ,
110
112
ConnMaxIdleTime : opt .ConnMaxIdleTime ,
111
113
ConnMaxLifetime : opt .ConnMaxLifetime ,
112
114
@@ -130,15 +132,17 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
130
132
MinRetryBackoff : opt .MinRetryBackoff ,
131
133
MaxRetryBackoff : opt .MaxRetryBackoff ,
132
134
133
- DialTimeout : opt .DialTimeout ,
134
- ReadTimeout : opt .ReadTimeout ,
135
- WriteTimeout : opt .WriteTimeout ,
135
+ DialTimeout : opt .DialTimeout ,
136
+ ReadTimeout : opt .ReadTimeout ,
137
+ WriteTimeout : opt .WriteTimeout ,
138
+ ContextTimeoutEnabled : opt .ContextTimeoutEnabled ,
136
139
137
140
PoolFIFO : opt .PoolFIFO ,
138
141
PoolSize : opt .PoolSize ,
139
142
PoolTimeout : opt .PoolTimeout ,
140
143
MinIdleConns : opt .MinIdleConns ,
141
144
MaxIdleConns : opt .MaxIdleConns ,
145
+ MaxActiveConns : opt .MaxActiveConns ,
142
146
ConnMaxIdleTime : opt .ConnMaxIdleTime ,
143
147
ConnMaxLifetime : opt .ConnMaxLifetime ,
144
148
@@ -165,15 +169,17 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
165
169
MinRetryBackoff : opt .MinRetryBackoff ,
166
170
MaxRetryBackoff : opt .MaxRetryBackoff ,
167
171
168
- DialTimeout : opt .DialTimeout ,
169
- ReadTimeout : opt .ReadTimeout ,
170
- WriteTimeout : opt .WriteTimeout ,
172
+ DialTimeout : opt .DialTimeout ,
173
+ ReadTimeout : opt .ReadTimeout ,
174
+ WriteTimeout : opt .WriteTimeout ,
175
+ ContextTimeoutEnabled : opt .ContextTimeoutEnabled ,
171
176
172
177
PoolFIFO : opt .PoolFIFO ,
173
178
PoolSize : opt .PoolSize ,
174
179
PoolTimeout : opt .PoolTimeout ,
175
180
MinIdleConns : opt .MinIdleConns ,
176
181
MaxIdleConns : opt .MaxIdleConns ,
182
+ MaxActiveConns : opt .MaxActiveConns ,
177
183
ConnMaxIdleTime : opt .ConnMaxIdleTime ,
178
184
ConnMaxLifetime : opt .ConnMaxLifetime ,
179
185
0 commit comments