]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Load dynamic conf as soon as possible
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 26 Oct 2016 11:20:56 +0000 (13:20 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 26 Oct 2016 11:20:56 +0000 (13:20 +0200)
src/plugins/lua/dynamic_conf.lua

index 7bfbc6cb8686aeaafb26353d5b0edb0dec9524ae..4c975b78ccda52b2db77699288e7097731624ef1 100644 (file)
@@ -276,10 +276,10 @@ if section then
   end
 
   rspamd_config:add_on_load(function(cfg, ev_base)
-    rspamd_config:add_periodic(ev_base, settings.redis_watch_interval,
+    rspamd_config:add_periodic(ev_base, 0.0,
     function(cfg, ev_base)
       check_dynamic_conf(cfg, ev_base)
-      return true
+      return settings.redis_watch_interval
     end, true)
   end)
 end