commit e48f717: [Minor] bayes_expiry: Fix type check
GitHub
noreply at github.com
Tue Jan 14 10:28:06 UTC 2020
Author: Alexander Moisseev
Date: 2020-01-14 11:13:08 +0300
URL: https://github.com/rspamd/rspamd/commit/e48f717e0bfaab60b0c44af0f3787158655ed2eb (refs/pull/3212/head)
[Minor] bayes_expiry: Fix type check
---
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 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
More information about the Commits
mailing list