Browse Source

[Minor] Enable redis periodics for the fuzzy worker

tags/3.2
Vsevolod Stakhov 2 years ago
parent
commit
a1652efaeb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/lua_redis.lua

+ 1
- 1
lualib/lua_redis.lua View 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

Loading…
Cancel
Save