]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix additional fields in the Redis schema
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 26 Oct 2022 21:24:58 +0000 (22:24 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 26 Oct 2022 21:24:58 +0000 (22:24 +0100)
Issue: #4318

lualib/lua_redis.lua

index a34adff6b3fb9b73753cef350bdd8caf04a788fd..d8f87c7bd76015e3605e559b433fe810613a23cd 100644 (file)
@@ -42,13 +42,13 @@ local config_schema =
   ts.shape({
     read_servers = ts.string + ts.array_of(ts.string),
     write_servers = ts.string + ts.array_of(ts.string),
-  }, {extra_opts = common_schema}) +
+  }, {extra_fields = common_schema}) +
   ts.shape({
     servers = ts.string + ts.array_of(ts.string),
-  }, {extra_opts = common_schema}) +
+  }, {extra_fields = common_schema}) +
   ts.shape({
     server = ts.string + ts.array_of(ts.string),
-  }, {extra_opts = common_schema})
+  }, {extra_fields = common_schema})
 
 exports.config_schema = config_schema