Skip to content

Commit

Permalink
Merge branch 'heiyeluren:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
housemecn authored Mar 25, 2022
2 parents 07d092e + a2ae3e6 commit 938648c
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 938648c

Please sign in to comment.