mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
session/redis: fix unused service config var. IdleTimeout witch was replaced by default values
Former-commit-id: 27752108409604cbabadf0d4457321f6e3336f9f
This commit is contained in:
parent
0411e0eaee
commit
b1b5986974
|
@ -292,7 +292,7 @@ func (r *Service) Connect() {
|
|||
c.Addr = DefaultRedisAddr
|
||||
}
|
||||
|
||||
pool := &redis.Pool{IdleTimeout: DefaultRedisIdleTimeout, MaxIdle: c.MaxIdle, MaxActive: c.MaxActive}
|
||||
pool := &redis.Pool{IdleTimeout: c.IdleTimeout, MaxIdle: c.MaxIdle, MaxActive: c.MaxActive}
|
||||
pool.TestOnBorrow = func(c redis.Conn, t time.Time) error {
|
||||
_, err := c.Do("PING")
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user