Fixed timeout params.
This commit is contained in:
parent
a3456f7e9c
commit
0d15371e53
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue