Skip to content

Commit

Permalink
Update koalaRule.go
Browse files Browse the repository at this point in the history
  • Loading branch information
houseme authored Jul 12, 2021
1 parent 82e55b9 commit a2ae3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion koala/koalaRule.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func (k *Rule) leakUpdate(cacheKey string) error {
if _, err := redis.Int(redisConn.Do("LPUSH", cacheKey, now)); err != nil {
return err
}
if _, err := redis.Int(redisConn.Do("EXPIRE", cacheKey, 2*k.time)); err != nil {
if _, err := redis.Int(redisConn.Do("EXPIRE", cacheKey, k.time)); err != nil {
return err
}
return nil
Expand Down

0 comments on commit a2ae3e6

Please sign in to comment.