From a1652efaebec969dae1f4924744c11e01221de43 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 20 Dec 2021 16:36:55 +0000 Subject: [PATCH] [Minor] Enable redis periodics for the fuzzy worker --- lualib/lua_redis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 296638078..5bd6ede30 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 -- 2.39.5