lib/elasticsearch/transport/client.rb in elasticsearch-transport-1.0.0.rc2 vs lib/elasticsearch/transport/client.rb in elasticsearch-transport-1.0.0

- old
+ new

@@ -78,10 +78,11 @@ arguments[:tracer] ||= arguments[:trace] ? DEFAULT_TRACER.call() : nil arguments[:reload_connections] ||= false arguments[:retry_on_failure] ||= false arguments[:reload_on_failure] ||= false arguments[:randomize_hosts] ||= false + arguments[:transport_options] ||= {} @transport = arguments[:transport] || \ transport_class.new(:hosts => __extract_hosts(hosts, arguments), :options => arguments) end @@ -93,9 +94,11 @@ # Normalizes and returns hosts configuration. # # Arrayifies the `hosts_config` argument and extracts `host` and `port` info from strings. # Performs shuffling when the `randomize_hosts` option is set. + # + # TODO: Refactor, so it's available in Elasticsearch::Transport::Base as well # # @return [Array<Hash>] # @raise [ArgumentError] # # @api private