diff --git a/lib/neo4j/core/cypher_session/adaptors/bolt.rb b/lib/neo4j/core/cypher_session/adaptors/bolt.rb index a0927f8b..ade058da 100644 --- a/lib/neo4j/core/cypher_session/adaptors/bolt.rb +++ b/lib/neo4j/core/cypher_session/adaptors/bolt.rb @@ -115,7 +115,7 @@ def secure_connection? end def open_socket - @tcp_client = Net::TCPClient.new(@net_tcp_client_options.merge(buffered: false, server: "#{host}:#{port}")) + @tcp_client = Net::TCPClient.new(**@net_tcp_client_options.merge(buffered: false, server: "#{host}:#{port}")) rescue Errno::ECONNREFUSED => e raise Neo4j::Core::CypherSession::ConnectionFailedError, e.message end