]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix warnings 1141/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 16 Nov 2016 11:50:51 +0000 (13:50 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 16 Nov 2016 11:53:43 +0000 (13:53 +0200)
src/plugins/lua/asn.lua
src/plugins/lua/fann_classifier.lua
src/plugins/lua/ip_score.lua

index d7afa250760bdb3b1f0b31dd70685f7ac15a9620..dccaf43d76e3ef09353dcf027bddebfc5c65353c 100644 (file)
@@ -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
index 3b360d9a087a368e6ef76b5e84609f5c832c8120..ba41040e9f0a9764b91c51a98447ae12ee0d37c8 100644 (file)
@@ -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
index ffffb22b18c2637ec72efb573fcae64842394329..205fc9627ea78ffb6cae52322303003b80e80320 100644 (file)
@@ -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