summaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2023-07-24 19:00:36 +0200
committerAndrew Lewis <nerf@judo.za.org>2023-07-24 19:00:36 +0200
commitee665b05d5e6e8f4bd877bf21c805410d9eeed25 (patch)
tree8dcd264e3fc51222de700dd206e78eb0b0c6d0b2 /lualib
parent0d8cabe1e157902481bf76014d56de18d3204d08 (diff)
downloadrspamd-ee665b05d5e6e8f4bd877bf21c805410d9eeed25.tar.gz
rspamd-ee665b05d5e6e8f4bd877bf21c805410d9eeed25.zip
[Minor] Minor fixes for previous ratelimit changes
Diffstat (limited to 'lualib')
-rw-r--r--lualib/redis_scripts/ratelimit_cleanup_pending.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/redis_scripts/ratelimit_cleanup_pending.lua b/lualib/redis_scripts/ratelimit_cleanup_pending.lua
index f51599b09..67ae634f1 100644
--- a/lualib/redis_scripts/ratelimit_cleanup_pending.lua
+++ b/lualib/redis_scripts/ratelimit_cleanup_pending.lua
@@ -22,7 +22,7 @@ pending = tonumber(pending or '0')
if pending < nrcpt then pending = 0 else pending = pending - nrcpt end
-- 3. Set the updated values back to Redis and update the expiration time for the bucket
-redis.call('HMSET', prefix, tostring(pending), 'l', KEYS[2])
+redis.call('HMSET', prefix, 'p', tostring(pending), 'l', KEYS[2])
redis.call('EXPIRE', prefix, KEYS[3])
-- 4. Return the updated pending value