diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-20 16:36:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-20 16:37:21 +0000 |
commit | a1652efaebec969dae1f4924744c11e01221de43 (patch) | |
tree | 8545618abfdd31f218df0481987b35dcd6269077 /lualib/lua_redis.lua | |
parent | c62978c254eadf54abb7c584a1dae8144c2325d4 (diff) | |
download | rspamd-a1652efaebec969dae1f4924744c11e01221de43.tar.gz rspamd-a1652efaebec969dae1f4924744c11e01221de43.zip |
[Minor] Enable redis periodics for the fuzzy worker
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r-- | lualib/lua_redis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |