Fixed timeout params.

This commit is contained in:
Martin Edenhofer 2014-12-27 21:38:13 +01:00
parent a3456f7e9c
commit 0d15371e53

View file

@ -240,7 +240,7 @@ return true if backend is configured
end end
def self.connection( url ) def self.connection( url )
conn = Faraday.new( :url => url, :options => { :open_timeout => 5, :timeout => 10 } ) conn = Faraday.new( :url => url, :request => { :open_timeout => 5, :timeout => 10 } )
user = Setting.get('es_user') user = Setting.get('es_user')
pw = Setting.get('es_password') pw = Setting.get('es_password')
if user && !user.empty? && pw && !pw.empty? if user && !user.empty? && pw && !pw.empty?