From 24f4313ef80b70f7495a16082c54d7f593c76dbe Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 16 Nov 2016 13:50:51 +0200 Subject: [PATCH] [Minor] Fix warnings --- src/plugins/lua/asn.lua | 2 +- src/plugins/lua/fann_classifier.lua | 2 +- src/plugins/lua/ip_score.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/asn.lua b/src/plugins/lua/asn.lua index d7afa2507..dccaf43d7 100644 --- a/src/plugins/lua/asn.lua +++ b/src/plugins/lua/asn.lua @@ -116,7 +116,7 @@ local function asn_check(task) end end - local ret,_,upstream = rspamd_redis_make_request(task, + local ret = rspamd_redis_make_request(task, redis_params, -- connect params key, -- hash key true, -- is write diff --git a/src/plugins/lua/fann_classifier.lua b/src/plugins/lua/fann_classifier.lua index 3b360d9a0..ba41040e9 100644 --- a/src/plugins/lua/fann_classifier.lua +++ b/src/plugins/lua/fann_classifier.lua @@ -80,7 +80,7 @@ local function maybe_load_fann(task, continue_cb, call_if_fail) end local key = classifier_config.key - local ret,_,upstream = rspamd_redis_make_request(task, + local ret = rspamd_redis_make_request(task, redis_params, -- connect params key, -- hash key false, -- is write diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index ffffb22b1..205fc9627 100644 --- a/src/plugins/lua/ip_score.lua +++ b/src/plugins/lua/ip_score.lua @@ -157,7 +157,7 @@ local ip_score_set = function(task) options['ipnet_prefix'] .. ipnet, string.format('%f|%d', ipnet_score, total_ipnet), ip:to_string(), string.format('%f|%d', ip_score, total_ip)} - local ret,_,upstream = rspamd_redis_make_request(task, + local ret = rspamd_redis_make_request(task, redis_params, -- connect params hkey, -- hash key true, -- is write @@ -310,7 +310,7 @@ local ip_score_check = function(task) local cmd, args = create_get_command() - local ret,_,upstream = rspamd_redis_make_request(task, + local ret = rspamd_redis_make_request(task, redis_params, -- connect params ip_score_hash_key(asn, country, ipnet, ip), -- hash key false, -- is write -- 2.39.5