aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2020-01-14 11:13:08 +0300
committerGitHub <noreply@github.com>2020-01-14 11:13:08 +0300
commite48f717e0bfaab60b0c44af0f3787158655ed2eb (patch)
treea768998b66adabe6e3fe7e19d9c69465a2aa78b9
parentd9e1e67ad7ecd2dfa7ae65405126f8c22cb10f0f (diff)
downloadrspamd-e48f717e0bfaab60b0c44af0f3787158655ed2eb.tar.gz
rspamd-e48f717e0bfaab60b0c44af0f3787158655ed2eb.zip
[Minor] bayes_expiry: Fix type check
-rw-r--r--src/plugins/lua/bayes_expiry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/bayes_expiry.lua b/src/plugins/lua/bayes_expiry.lua
index 6cdd1a059..84c11644d 100644
--- a/src/plugins/lua/bayes_expiry.lua
+++ b/src/plugins/lua/bayes_expiry.lua
@@ -259,7 +259,7 @@ local expiry_script = [[
0,0,0,0,0,0,0,0,0,0,0
for _,key in ipairs(keys) do
- local t = redis.call('TYPE', key)
+ local t = redis.call('TYPE', key)["ok"]
if t == 'hash' then
local values = redis.call('HMGET', key, 'H', 'S')
local ham = tonumber(values[1]) or 0