aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/replies.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-24 12:57:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-24 12:57:42 +0100
commit2ec4b534771308528390c753b9886ba5ebfcb07e (patch)
treea3f6f08beef6cd55a52a7a66c907c53602fc35d8 /src/plugins/lua/replies.lua
parent86c11386cf43e7b841a8673d2552913084bbd406 (diff)
downloadrspamd-2ec4b534771308528390c753b9886ba5ebfcb07e.tar.gz
rspamd-2ec4b534771308528390c753b9886ba5ebfcb07e.zip
[Minor] Replies: Use milliseconds resolution for expiration
Diffstat (limited to 'src/plugins/lua/replies.lua')
-rw-r--r--src/plugins/lua/replies.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 6c3459b4f..330049464 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -158,8 +158,8 @@ local function replies_set(task)
key, -- hash key
true, -- is write
redis_set_cb, --callback
- 'SETEX', -- command
- {key, tostring(math.floor(settings['expire'])), value:lower()} -- arguments
+ 'PSETEX', -- command
+ {key, tostring(math.floor(settings['expire'] * 1000)), value:lower()} -- arguments
)
if not ret then
rspamd_logger.errx(task, "redis request wasn't scheduled")