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/fann_scores.lua | |
parent | 5ba9ba75fc19c62ca36198b8e1998412ecebdc07 (diff) | |
download | rspamd-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.lua | 6 |
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 |