Commit 826d33ea by Kyle Brandt Committed by GitHub

auth_proxy: non-negative cache TTL (#17495)

fixes setex error with redis on #17377
parent 591ea0bf
......@@ -292,7 +292,7 @@ func (auth *AuthProxy) Remember(id int64) *Error {
return nil
}
expiration := time.Duration(-auth.cacheTTL) * time.Minute
expiration := time.Duration(auth.cacheTTL) * time.Minute
err := auth.store.Set(key, id, expiration)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment