summaryrefslogtreecommitdiffstats
path: root/lualib/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-06-27 20:57:47 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-06-27 20:57:47 +0100
commitcbdb21960f2a885237c8e8179ac1d698ad9c57c2 (patch)
tree8a8f0ffbd5e7e9d1f59c281d67dd4b836ce6c281 /lualib/plugins
parentf9cfbba2c84e01f18e65618587e6854681843ff1 (diff)
downloadrspamd-cbdb21960f2a885237c8e8179ac1d698ad9c57c2.tar.gz
rspamd-cbdb21960f2a885237c8e8179ac1d698ad9c57c2.zip
[Minor] Fix Redis prefixes
Diffstat (limited to 'lualib/plugins')
-rw-r--r--lualib/plugins/neural.lua8
1 files 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