]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Enable redis periodics for the fuzzy worker
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Dec 2021 16:36:55 +0000 (16:36 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Dec 2021 16:37:21 +0000 (16:37 +0000)
lualib/lua_redis.lua

index 29663807874a8765404d4567c36271c696a245ce..5bd6ede3012b3a2eee5ecbe1bb6108abb56f2e1b 100644 (file)
@@ -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