From 0659beb4eb6a475e488bcb01c7a2488ff34c0b7b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 30 Apr 2021 17:51:29 +0100 Subject: [PATCH] [Minor] Bayes actually uses sets, not lists --- lualib/rspamadm/statistics_dump.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/rspamadm/statistics_dump.lua b/lualib/rspamadm/statistics_dump.lua index 5caa63666..bbd4e2410 100644 --- a/lualib/rspamadm/statistics_dump.lua +++ b/lualib/rspamadm/statistics_dump.lua @@ -340,9 +340,9 @@ local function obj_to_redis_arguments(obj, opts, cmd_pipe) end end else - -- Numeric table of elements (e.g. _keys) + -- Numeric table of elements (e.g. _keys) - it is actually a set in Redis for _,elt in ipairs(value) do - table.insert(cmd_pipe, {'LPUSHX', {key, elt}}) + table.insert(cmd_pipe, {'SADD', {key, elt}}) end end end -- 2.39.5