提交 3883a381 编写于 作者: A antirez

use map! instead of reassigning

上级 583fc5dd
......@@ -92,7 +92,7 @@ class ClusterNode
# As we want to aggregate adiacent slots we convert all the
# slot integers into ranges (with just one element)
# So we have something like [1..1,2..2, ... and so forth.
slots = slots.map{|x| x..x}
slots.map!{|x| x..x}
# Finally we group ranges with adiacent elements.
slots = slots.reduce([]) {|a,b|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册