diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-26 13:20:56 +0200 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-26 13:20:56 +0200 |
commit | 308c876d0beaf7c7e7a15f85ec6ada0f01ff1b0f (patch) | |
tree | d73314f5ec27b72c548fbe358d55d9a710bab2ed /src | |
parent | 903bd56c0a6ef2d503dd64d39f0eac00d14faa98 (diff) | |
download | rspamd-308c876d0beaf7c7e7a15f85ec6ada0f01ff1b0f.tar.gz rspamd-308c876d0beaf7c7e7a15f85ec6ada0f01ff1b0f.zip |
[Minor] Load dynamic conf as soon as possible
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dynamic_conf.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/dynamic_conf.lua b/src/plugins/lua/dynamic_conf.lua index 7bfbc6cb8..4c975b78c 100644 --- a/src/plugins/lua/dynamic_conf.lua +++ b/src/plugins/lua/dynamic_conf.lua @@ -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 |