We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080375d commit 4518615Copy full SHA for 4518615
elasticsearch-transport/lib/elasticsearch/transport/client.rb
@@ -96,9 +96,9 @@ class Client
96
#
97
# @yield [faraday] Access and configure the `Faraday::Connection` instance directly with a block
98
99
- def initialize(arguments={}, &block)
100
- @options = arguments
101
- @arguments = arguments
+ def initialize(arguments = {}, &block)
+ @options = arguments.each_with_object({}){ |(k,v), args| args[k.to_sym] = v }
+ @arguments = @options
102
@arguments[:logger] ||= @arguments[:log] ? DEFAULT_LOGGER.call() : nil
103
@arguments[:tracer] ||= @arguments[:trace] ? DEFAULT_TRACER.call() : nil
104
@arguments[:reload_connections] ||= false
0 commit comments