Skip to content

Commit 95b7f8f

Browse files
mkdynamickarmi
authored andcommitted
[CLIENT] Use the connections.all.size consistently for reload_on_failure
Closes #106
1 parent 0149954 commit 95b7f8f

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-transport/lib/elasticsearch/transport/transport

1 file changed

+1
-1
lines changed

elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def perform_request(method, path, params={}, body=nil, &block)
194194
connection.dead!
195195

196196
if @options[:reload_on_failure] and tries < connections.all.size
197-
logger.warn "[#{e.class}] Reloading connections (attempt #{tries} of #{connections.size})" if logger
197+
logger.warn "[#{e.class}] Reloading connections (attempt #{tries} of #{connections.all.size})" if logger
198198
reload_connections! and retry
199199
end
200200

0 commit comments

Comments
 (0)