diff options
Diffstat (limited to 'src/plugins/lua/fuzzy_collect.lua')
-rw-r--r-- | src/plugins/lua/fuzzy_collect.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/fuzzy_collect.lua b/src/plugins/lua/fuzzy_collect.lua index b5dae4e20..57a4a2fa6 100644 --- a/src/plugins/lua/fuzzy_collect.lua +++ b/src/plugins/lua/fuzzy_collect.lua @@ -178,7 +178,7 @@ if opts and type(opts) == 'table' then if sane_config then rspamd_config:add_on_load(function(_, ev_base, worker) - if worker:get_name() == 'controller' and worker:get_index() == 0 then + if worker:is_primary_controller() then rspamd_config:add_periodic(ev_base, 0.0, function(_cfg, _ev_base) return collect_fuzzy_hashes(_cfg, _ev_base) |