From 5aa56ccf9230531b559985453e28aa807354bc06 Mon Sep 17 00:00:00 2001 From: Andrej Zverev Date: Tue, 29 Nov 2016 11:19:13 +0300 Subject: [PATCH] Fix typo when calling rspamd_redis_make_request for write operation. --- src/plugins/lua/mx_check.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 6d333350d..db2e51369 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -80,7 +80,7 @@ local function mx_check(task) local ret = rspamd_redis_make_request(task, redis_params, -- connect params key, -- hash key - false, -- is write + true, -- is write redis_cache_cb, --callback 'SETEX', -- command {key, tostring(settings.expire_novalid), '0'} -- arguments @@ -97,7 +97,7 @@ local function mx_check(task) local ret = rspamd_redis_make_request(task, redis_params, -- connect params key, -- hash key - false, -- is write + true, -- is write redis_cache_cb, --callback 'SETEX', -- command {key, tostring(settings.expire), table.concat(valid_mx, ';')} -- arguments -- 2.39.5