From bc1f265ed1057578ae9eba301715dfa2651cb572 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 12 Mar 2018 13:15:56 +0000 Subject: [PATCH] [Minor] Add jittering to expiration periodic --- src/plugins/lua/bayes_expiry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua index c8ff4d0ba..0088298e2 100644 --- a/src/plugins/lua/bayes_expiry.lua +++ b/src/plugins/lua/bayes_expiry.lua @@ -263,6 +263,6 @@ rspamd_config:add_on_load(function (_, ev_base, worker) rspamd_config:add_periodic(ev_base, settings['interval'], function () expire_step(cls, ev_base, worker) return true - end) + end, true) end end) -- 2.39.5