aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-04-14 20:50:12 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-04-14 20:50:12 +0100
commit00c3dded42409c81ea6d8d3cda5804e949913f45 (patch)
treebe7e77c9b94f4b96a5ff1ba4ce94dd3830be5fe9 /lualib/plugins
parentbf943d3694f4c4a33765db3f24940d769747c85c (diff)
downloadrspamd-00c3dded42409c81ea6d8d3cda5804e949913f45.tar.gz
rspamd-00c3dded42409c81ea6d8d3cda5804e949913f45.zip
[Minor] Fix issues found by the new luacheck version
Diffstat (limited to 'lualib/plugins')
-rw-r--r--lualib/plugins/neural.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/plugins/neural.lua b/lualib/plugins/neural.lua
index 56c723ea5..d2db2f519 100644
--- a/lualib/plugins/neural.lua
+++ b/lualib/plugins/neural.lua
@@ -368,10 +368,10 @@ end
local function register_lock_extender(rule, set, ev_base, ann_key)
rspamd_config:add_periodic(ev_base, 30.0,
function()
- local function redis_lock_extend_cb(_err, _)
- if _err then
+ local function redis_lock_extend_cb(err, _)
+ if err then
rspamd_logger.errx(rspamd_config, 'cannot lock ANN %s from redis: %s',
- ann_key, _err)
+ ann_key, err)
else
rspamd_logger.infox(rspamd_config, 'extend lock for ANN %s for 30 seconds',
ann_key)