diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-17 13:19:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-17 13:19:15 +0100 |
commit | 0d49f9163e08e97fdc8a5ed2675632971c2e7ca6 (patch) | |
tree | e948ecc40262e2e3a4fb962a02ed21f5523e1da6 /lualib | |
parent | e2abe3362a932d9fa3335b2f935496bd19d1cc12 (diff) | |
download | rspamd-0d49f9163e08e97fdc8a5ed2675632971c2e7ca6.tar.gz rspamd-0d49f9163e08e97fdc8a5ed2675632971c2e7ca6.zip |
[Fix] Store reference of upstream list in upstreams objects
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_redis.lua | 3 |
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 = {} |