lib/redis/cluster/slot.rb in redis-4.1.0 vs lib/redis/cluster/slot.rb in redis-4.1.1
- old
+ new
@@ -55,10 +55,10 @@
slots.each { |slot| assign_node_key(acc, slot, node_key) }
end
end
def assign_node_key(mappings, slot, node_key)
- mappings[slot] ||= { master: nil, slaves: Set.new }
+ mappings[slot] ||= { master: nil, slaves: ::Set.new }
if master?(node_key)
mappings[slot][:master] = node_key
else
mappings[slot][:slaves].add(node_key)
end