File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
lib/elasticsearch/transport Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Features overview:
2929
3030For optimal performance, you should use a HTTP library which supports persistent ("keep-alive") connections,
3131e.g. [ Patron] ( https://github.com/toland/patron ) or [ Typhoeus] ( https://github.com/typhoeus/typhoeus ) .
32- Just ` require 'patron' ` or ` require 'typhoeus'; require 'typhoeus/adapters/faraday' ` in your code,
32+ Just ` require 'patron' ` or ` require 'typhoeus' ` in your code,
3333and it will be automatically used; other automatically used libraries are
3434[ HTTPClient] ( https://rubygems.org/gems/httpclient ) and
3535[ Net::HTTP::Persistent] ( https://rubygems.org/gems/net-http-persistent ) .
Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ def __auto_detect_adapter
174174 when defined? ( ::Patron )
175175 :patron
176176 when defined? ( ::Typhoeus )
177+ require "typhoeus/adapters/faraday"
177178 :typhoeus
178179 when defined? ( ::HTTPClient )
179180 :httpclient
You can’t perform that action at this time.
0 commit comments