aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-07 15:10:32 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-07 15:10:32 +0100
commitf61ced40295b217acc766fc958bc1fe621f947a8 (patch)
tree18321eab0e0aa79c9356508a23aed26a8837379f /lualib/lua_redis.lua
parent0e3bc7a86a600b88c57207a0a4442cbe9840d081 (diff)
downloadrspamd-f61ced40295b217acc766fc958bc1fe621f947a8.tar.gz
rspamd-f61ced40295b217acc766fc958bc1fe621f947a8.zip
[Minor] Fix usage
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index 6d2a9e4f1..b03160bb0 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -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