session/redis: fix unused service config var. IdleTimeout witch was replaced by default values

Former-commit-id: 27752108409604cbabadf0d4457321f6e3336f9f
This commit is contained in:
Dzmitry.Harupa 2018-11-27 14:55:00 +03:00
parent 0411e0eaee
commit b1b5986974

View File

@ -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