Skip to content

Commit

Permalink
fix(rediscluster): maybe too many connection when MOVED (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
sundream authored Dec 29, 2024
1 parent 88df42a commit 7c3942c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/skynet/db/redis/cluster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ function rediscluster:initialize_slots_cache()
self:set_node_name(slave_node)
table.insert(master_node.slaves,slave_node)
end
table.insert(self.nodes,master_node)
for slot=tonumber(result[1]),tonumber(result[2]) do
table.insert(self.nodes,master_node)
self.slots[slot] = master_node
end
end
Expand Down

0 comments on commit 7c3942c

Please sign in to comment.