lib/aerospike/command/batch_index_node.rb in aerospike-2.22.0 vs lib/aerospike/command/batch_index_node.rb in aerospike-2.23.0
- old
+ new
@@ -28,10 +28,10 @@
.map { |node, keys_with_idx| BatchIndexNode.new(node, keys_with_idx) }
end
def initialize(node, keys_with_idx)
@node = node
- @keys_by_idx = Hash[keys_with_idx.map(&:reverse)]
+ @keys_by_idx = keys_with_idx.map(&:reverse).to_h
end
def keys
keys_by_idx.values
end