]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix usage
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 7 Aug 2023 14:10:32 +0000 (15:10 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 7 Aug 2023 14:10:32 +0000 (15:10 +0100)
lualib/lua_redis.lua

index 6d2a9e4f196e501678b4dd8cad87eb8f5031f770..b03160bb01f494bef0939be4a1322f036cf1b284 100644 (file)
@@ -1140,10 +1140,10 @@ local function prepare_redis_call(script)
   local options = {}
 
   if script.redis_params.read_servers then
-    lutil.table_merge(servers, script.redis_params.read_servers:all_upstreams())
+    servers = lutil.table_merge(servers, script.redis_params.read_servers:all_upstreams())
   end
   if script.redis_params.write_servers then
-    lutil.table_merge(servers, script.redis_params.write_servers:all_upstreams())
+    servers = lutil.table_merge(servers, script.redis_params.write_servers:all_upstreams())
   end
 
   -- Call load script on each server, set loaded flag