diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-04-19 21:47:28 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-04-19 21:47:28 +0300 |
commit | 9eb294b1dc7e6a83d80152ab6040c13954bac6d4 (patch) | |
tree | bb0f6018cb7414e94b98a4dbd0cb0f3e6d2a3baa /src/plugins/lua/bayes_expiry.lua | |
parent | cce0110d9ec635c47b8c557e3ecaa9c0936671a2 (diff) | |
download | rspamd-9eb294b1dc7e6a83d80152ab6040c13954bac6d4.tar.gz rspamd-9eb294b1dc7e6a83d80152ab6040c13954bac6d4.zip |
[Minor] Keep cursor permanently
Diffstat (limited to 'src/plugins/lua/bayes_expiry.lua')
-rw-r--r-- | src/plugins/lua/bayes_expiry.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua index f50484d53..257503866 100644 --- a/src/plugins/lua/bayes_expiry.lua +++ b/src/plugins/lua/bayes_expiry.lua @@ -266,8 +266,8 @@ local expiry_script = [[ end end - redis.call('SETEX', cursor_key, ${expire_step} * 10, tostring(next)) - redis.call('SETEX', step_key, ${expire_step} * 10, tostring(step)) + redis.call('SET', cursor_key, tostring(next)) + redis.call('SET', step_key, tostring(step)) redis.call('DEL', lock_key) return {next, step, nelts, extended, discriminated, mean, stddev, common, significant, infrequent, ttls_set} |