lib/elasticsearch/transport/transport/connections/collection.rb in elasticsearch-transport-1.0.7 vs lib/elasticsearch/transport/transport/connections/collection.rb in elasticsearch-transport-1.0.9
- old
+ new
@@ -21,10 +21,10 @@
# @option arguments [Object] :selector The selector strategy object.
#
def initialize(arguments={})
selector_class = arguments[:selector_class] || DEFAULT_SELECTOR
@connections = arguments[:connections] || []
- @selector = arguments[:selector] || selector_class.new(arguments)
+ @selector = arguments[:selector] || selector_class.new(arguments.merge(:connections => self))
end
# Returns an Array of hosts information in this collection as Hashes.
#
# @return [Array]