commit cbdb219: [Minor] Fix Redis prefixes

Vsevolod Stakhov vsevolod at rspamd.com
Mon Jun 27 20:00:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-06-27 20:57:47 +0100
URL: https://github.com/rspamd/rspamd/commit/cbdb21960f2a885237c8e8179ac1d698ad9c57c2 (HEAD -> master)

[Minor] Fix Redis prefixes

---
 lualib/plugins/neural.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lualib/plugins/neural.lua b/lualib/plugins/neural.lua
index 7c16fa617..3400f8d27 100644
--- a/lualib/plugins/neural.lua
+++ b/lualib/plugins/neural.lua
@@ -835,17 +835,17 @@ local function process_rules_settings()
           persistent = true,
           type = 'hash',
         })
-    lua_redis.register_prefix(selt.prefix .. '_\\d+_spam', N,
+    lua_redis.register_prefix(selt.prefix .. '_\\d+_spam_set', N,
         string.format('NN learning set (spam) for rule "%s"; settings id "%s"',
             selt.prefix, selt.name), {
           persistent = true,
-          type = 'list',
+          type = 'set',
         })
-    lua_redis.register_prefix(selt.prefix .. '_\\d+_ham', N,
+    lua_redis.register_prefix(selt.prefix .. '_\\d+_ham_set', N,
         string.format('NN learning set (spam) for rule "%s"; settings id "%s"',
             rule.prefix, selt.name), {
           persistent = true,
-          type = 'list',
+          type = 'set',
         })
   end
 


More information about the Commits mailing list