@@ -74,6 +74,7 @@ type FailoverOptions struct {
7474 PoolTimeout time.Duration
7575 MinIdleConns int
7676 MaxIdleConns int
77+ MaxActiveConns int
7778 ConnMaxIdleTime time.Duration
7879 ConnMaxLifetime time.Duration
7980
@@ -107,6 +108,7 @@ func (opt *FailoverOptions) clientOptions() *Options {
107108 PoolTimeout : opt .PoolTimeout ,
108109 MinIdleConns : opt .MinIdleConns ,
109110 MaxIdleConns : opt .MaxIdleConns ,
111+ MaxActiveConns : opt .MaxActiveConns ,
110112 ConnMaxIdleTime : opt .ConnMaxIdleTime ,
111113 ConnMaxLifetime : opt .ConnMaxLifetime ,
112114
@@ -130,15 +132,17 @@ func (opt *FailoverOptions) sentinelOptions(addr string) *Options {
130132 MinRetryBackoff : opt .MinRetryBackoff ,
131133 MaxRetryBackoff : opt .MaxRetryBackoff ,
132134
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 ,
136139
137140 PoolFIFO : opt .PoolFIFO ,
138141 PoolSize : opt .PoolSize ,
139142 PoolTimeout : opt .PoolTimeout ,
140143 MinIdleConns : opt .MinIdleConns ,
141144 MaxIdleConns : opt .MaxIdleConns ,
145+ MaxActiveConns : opt .MaxActiveConns ,
142146 ConnMaxIdleTime : opt .ConnMaxIdleTime ,
143147 ConnMaxLifetime : opt .ConnMaxLifetime ,
144148
@@ -165,15 +169,17 @@ func (opt *FailoverOptions) clusterOptions() *ClusterOptions {
165169 MinRetryBackoff : opt .MinRetryBackoff ,
166170 MaxRetryBackoff : opt .MaxRetryBackoff ,
167171
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 ,
171176
172177 PoolFIFO : opt .PoolFIFO ,
173178 PoolSize : opt .PoolSize ,
174179 PoolTimeout : opt .PoolTimeout ,
175180 MinIdleConns : opt .MinIdleConns ,
176181 MaxIdleConns : opt .MaxIdleConns ,
182+ MaxActiveConns : opt .MaxActiveConns ,
177183 ConnMaxIdleTime : opt .ConnMaxIdleTime ,
178184 ConnMaxLifetime : opt .ConnMaxLifetime ,
179185
0 commit comments