summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/fann_scores.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-17 16:23:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-17 16:23:45 +0100
commitec65afa2eff32bf4ea72502a7d4d46d6340e779b (patch)
treedb5d64819aa66856a7b718f60b7a6afa518df3fb /src/plugins/lua/fann_scores.lua
parent5ba9ba75fc19c62ca36198b8e1998412ecebdc07 (diff)
downloadrspamd-ec65afa2eff32bf4ea72502a7d4d46d6340e779b.tar.gz
rspamd-ec65afa2eff32bf4ea72502a7d4d46d6340e779b.zip
[Rework] Adopt plugins
Diffstat (limited to 'src/plugins/lua/fann_scores.lua')
-rw-r--r--src/plugins/lua/fann_scores.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua
index d1564cd2e..6a63e2e6e 100644
--- a/src/plugins/lua/fann_scores.lua
+++ b/src/plugins/lua/fann_scores.lua
@@ -602,7 +602,7 @@ redis_params = rspamd_parse_redis_server('fann_scores')
local function maybe_load_fann(task, continue_cb, call_if_fail)
local function load_fann()
- local function redis_fann_load_cb(task, err, data)
+ local function redis_fann_load_cb(err, data)
if not err and type(data) == 'table' and type(data[2]) == 'string' then
local version = tonumber(data[1])
local err,ann_data = rspamd_util.zstd_decompress(data[2])
@@ -653,7 +653,7 @@ local function maybe_load_fann(task, continue_cb, call_if_fail)
end
local function check_fann()
- local function redis_fann_check_cb(task, err, data)
+ local function redis_fann_check_cb(err, data)
if not err and type(data) == 'string' then
local version = tonumber(data)
@@ -737,7 +737,7 @@ local function create_fann()
end
local function save_fann(task, is_spam)
- local function redis_fann_save_cb(task, err, data)
+ local function redis_fann_save_cb(err, data)
if err then
rspamd_logger.errx(task, "cannot save neural net to redis: %s", err)
end