diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-04-14 20:50:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-04-14 20:50:12 +0100 |
commit | 00c3dded42409c81ea6d8d3cda5804e949913f45 (patch) | |
tree | be7e77c9b94f4b96a5ff1ba4ce94dd3830be5fe9 /lualib/plugins | |
parent | bf943d3694f4c4a33765db3f24940d769747c85c (diff) | |
download | rspamd-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.lua | 6 |
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) |