]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Ratelimit: don't copy data
authorAndrew Lewis <nerf@judo.za.org>
Wed, 14 Sep 2016 06:56:24 +0000 (08:56 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 14 Sep 2016 06:56:24 +0000 (08:56 +0200)
src/plugins/lua/ratelimit.lua

index 35b0a6cac9a88a25ca778f349b050e5a0d69643b..6731419c8a988c50c935f82a622066f9b5a099a9 100644 (file)
@@ -35,7 +35,6 @@ local rl_prefix = 'rl'
 local ip_score_lower_bound = 10
 local ip_score_ham_multiplier = 1.1
 local ip_score_spam_divisor = 1.1
-local user_data
 
 local rspamd_logger = require "rspamd_logger"
 local rspamd_redis = require "rspamd_redis"
@@ -535,7 +534,7 @@ if opts then
   end
 
   if opts['custom_keywords'] then
-    custom_keywords, user_data = dofile(opts['custom_keywords'])
+    custom_keywords = dofile(opts['custom_keywords'])
   end
 
   if opts['user_keywords'] then