From 0d49f9163e08e97fdc8a5ed2675632971c2e7ca6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 17 Aug 2020 13:19:15 +0100 Subject: [Fix] Store reference of upstream list in upstreams objects --- lualib/lua_redis.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lualib/lua_redis.lua') diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index 017381e02..296638078 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -64,7 +64,8 @@ local function redis_query_sentinel(ev_base, params, initialised) end -- Coroutines syntax local rspamd_redis = require "rspamd_redis" - local addr = params.sentinels:get_upstream_round_robin() + local sentinels = params.sentinels + local addr = sentinels:get_upstream_round_robin() local host = addr:get_addr() local masters = {} -- cgit v1.2.3