]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix Redis prefixes
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 27 Jun 2022 19:57:47 +0000 (20:57 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 27 Jun 2022 19:57:47 +0000 (20:57 +0100)
lualib/plugins/neural.lua

index 7c16fa6174d9d70b13dde0c2fb0fc66facf6e71c..3400f8d275b779275750c40453f14c0f95b4ad3b 100644 (file)
@@ -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