From: Vsevolod Stakhov Date: Mon, 20 Dec 2021 16:36:55 +0000 (+0000) Subject: [Minor] Enable redis periodics for the fuzzy worker X-Git-Tag: 3.2~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1652efaebec969dae1f4924744c11e01221de43;p=thirdparty%2Frspamd.git [Minor] Enable redis periodics for the fuzzy worker --- diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 2966380787..5bd6ede301 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -276,7 +276,7 @@ local function add_redis_sentinels(params) rspamd_config:add_on_load(function(_, ev_base, worker) local initialised = false - if worker:is_scanner() then + if worker:is_scanner() or worker:get_type() == 'fuzzy' then rspamd_config:add_periodic(ev_base, 0.0, function() redis_query_sentinel(ev_base, params, initialised) initialised = true