summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/history_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-07 14:52:12 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-07 14:52:12 +0100
commit0e3bc7a86a600b88c57207a0a4442cbe9840d081 (patch)
tree2168a9dcca6259c6be67870a13d4528c819e7cf0 /src/plugins/lua/history_redis.lua
parentb9fb73ce0ba993c9873cf0022be7bb68766c8d83 (diff)
downloadrspamd-0e3bc7a86a600b88c57207a0a4442cbe9840d081.tar.gz
rspamd-0e3bc7a86a600b88c57207a0a4442cbe9840d081.zip
[Fix] Fix lua schema enrichment logic for Redis params
Diffstat (limited to 'src/plugins/lua/history_redis.lua')
-rw-r--r--src/plugins/lua/history_redis.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua
index 9cbe7caf7..d0aa5aec7 100644
--- a/src/plugins/lua/history_redis.lua
+++ b/src/plugins/lua/history_redis.lua
@@ -65,7 +65,7 @@ local settings = {
subject_privacy_length = 16, -- cut the length of the hash
}
-local settings_schema = lua_redis.generate_schema({
+local settings_schema = lua_redis.enrich_schema({
key_prefix = ts.string,
expire = (ts.number + ts.string / lua_util.parse_time_interval):is_optional(),
nrows = ts.number,