aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_redis.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_redis.lua')
-rw-r--r--lualib/lua_redis.lua3
1 files changed, 2 insertions, 1 deletions
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 = {}