commit a1652ef: [Minor] Enable redis periodics for the fuzzy worker

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Dec 20 16:42:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-12-20 16:36:55 +0000
URL: https://github.com/rspamd/rspamd/commit/a1652efaebec969dae1f4924744c11e01221de43 (HEAD -> master)

[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


More information about the Commits mailing list