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/asn.lua | |
parent | 5ba9ba75fc19c62ca36198b8e1998412ecebdc07 (diff) | |
download | rspamd-ec65afa2eff32bf4ea72502a7d4d46d6340e779b.tar.gz rspamd-ec65afa2eff32bf4ea72502a7d4d46d6340e779b.zip |
[Rework] Adopt plugins
Diffstat (limited to 'src/plugins/lua/asn.lua')
-rw-r--r-- | src/plugins/lua/asn.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua index 2bb380edc..75d495d79 100644 --- a/src/plugins/lua/asn.lua +++ b/src/plugins/lua/asn.lua @@ -65,7 +65,7 @@ local function asn_check(task) if redis_params then local redis_key = options.key_prefix .. ip:to_string() local ret,conn,upstream - local function redis_asn_set_cb(task, err, data) + local function redis_asn_set_cb(err, data) if not err then upstream:ok() else @@ -101,13 +101,13 @@ local function asn_check(task) local function asn_check_cache(ip, continuation_func) local key = options.key_prefix .. ip:to_string() - local function redis_asn_get_cb(task, err, data) + local function redis_asn_get_cb(err, data) if err or not data or type(data[1]) ~= 'string' then continuation_func(ip) else asn_set(data[1], data[2], data[3]) -- Refresh key - local function redis_asn_expire_cb(task, err, data) + local function redis_asn_expire_cb(err, data) end local ret,_,_ = rspamd_redis_make_request(task, |