]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow to set lock expire for ANN module
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Dec 2016 19:07:42 +0000 (19:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Dec 2016 19:07:42 +0000 (19:07 +0000)
src/plugins/lua/fann_redis.lua

index a7f8aa606d1bd67cb04c4ccbc17082b1f3522fc1..18d91314fa489028a39f970f2d401800117d10bc 100644 (file)
@@ -842,6 +842,9 @@ else
   if opts['prefix'] then
     fann_prefix = opts['prefix']
   end
+  if opts['lock_expire'] then
+    lock_expire = tonumber(opts['lock_expire'])
+  end
   rspamd_config:set_metric_symbol({
     name = fann_symbol_spam,
     score = 3.0,