Skip to content

Commit 3b28dbc

Browse files
committed
Don't need to use initialize key. Should just pass faraday options directly
1 parent 9e4bef9 commit 3b28dbc

File tree

1 file changed

+2
-2
lines changed
  • lib/neo4j/core/cypher_session/adaptors

1 file changed

+2
-2
lines changed

lib/neo4j/core/cypher_session/adaptors/http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def initialize(url, options = {})
1616
end
1717

1818
def connect
19-
@requestor = Requestor.new(@url, USER_AGENT_STRING, self.class.method(:instrument_request), @options[:faraday_options] ||= {})
19+
@requestor = Requestor.new(@url, USER_AGENT_STRING, self.class.method(:instrument_request), @options.fetch(:faraday_options, {}))
2020
end
2121

2222
ROW_REST = %w(row REST)
@@ -106,7 +106,7 @@ def initialize(url, user_agent_string, instrument_proc, faraday_options = {})
106106
@user = user
107107
@password = password
108108
@user_agent_string = user_agent_string
109-
@faraday = wrap_connection_failed! { faraday_connection(faraday_options.fetch(:initialize, {})) }
109+
@faraday = wrap_connection_failed! { faraday_connection(faraday_options) }
110110
@instrument_proc = instrument_proc
111111
end
112112

0 commit comments

Comments
 (0)