From 00c3dded42409c81ea6d8d3cda5804e949913f45 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 14 Apr 2022 20:50:12 +0100 Subject: [Minor] Fix issues found by the new luacheck version --- lualib/plugins/neural.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lualib/plugins') 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) -- cgit v1.2.3