You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f.DurationVar(&c.ConnectionPoolTimeout, prefix+"connection-pool-timeout", time.Second*4, "Maximum duration to wait to get a connection from pool.")
114
120
f.IntVar(&c.ConnectionPoolSize, prefix+"connection-pool-size", 100, "Maximum number of connections in the pool.")
115
121
f.IntVar(&c.MinIdleConnections, prefix+"min-idle-connections", 10, "Minimum number of idle connections.")
116
122
f.DurationVar(&c.MaxConnectionAge, prefix+"max-connection-age", 0, "Close connections older than this duration. If the value is zero, then the pool does not close connections based on age.")
@@ -162,6 +168,7 @@ func NewRedisClient(logger log.Logger, name string, config RedisClientConfig, re
162
168
ReadTimeout: config.ReadTimeout,
163
169
WriteTimeout: config.WriteTimeout,
164
170
PoolSize: config.ConnectionPoolSize,
171
+
PoolTimeout: config.ConnectionPoolTimeout,
165
172
MinIdleConns: config.MinIdleConnections,
166
173
MaxConnAge: config.MaxConnectionAge,
167
174
IdleTimeout: config.IdleTimeout,
@@ -201,6 +208,7 @@ func NewRedisClient(logger log.Logger, name string, config RedisClientConfig, re
0 commit comments