diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-17 16:23:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-17 16:23:45 +0100 |
commit | ec65afa2eff32bf4ea72502a7d4d46d6340e779b (patch) | |
tree | db5d64819aa66856a7b718f60b7a6afa518df3fb /src/plugins/lua/antivirus.lua | |
parent | 5ba9ba75fc19c62ca36198b8e1998412ecebdc07 (diff) | |
download | rspamd-ec65afa2eff32bf4ea72502a7d4d46d6340e779b.tar.gz rspamd-ec65afa2eff32bf4ea72502a7d4d46d6340e779b.zip |
[Rework] Adopt plugins
Diffstat (limited to 'src/plugins/lua/antivirus.lua')
-rw-r--r-- | src/plugins/lua/antivirus.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua index 2ca43f8df..6dfadd027 100644 --- a/src/plugins/lua/antivirus.lua +++ b/src/plugins/lua/antivirus.lua @@ -137,7 +137,7 @@ local function need_av_check(task, rule) end local function check_av_cache(task, rule, fn) - local function redis_av_cb(task, err, data) + local function redis_av_cb(err, data) if data and type(data) == 'string' then -- Cached if data ~= 'OK' then @@ -172,7 +172,7 @@ end local function save_av_cache(task, rule, to_save) local key = task:get_digest() - local function redis_set_cb(task, err, data) + local function redis_set_cb(err, data) -- Do nothing if err then rspamd_logger.errx(task, 'failed to save virus cache for %s -> "%s": %s', |