From 0d15371e53e2cd9826147bcff3d84c529bb965dc Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 27 Dec 2014 21:38:13 +0100 Subject: [PATCH] Fixed timeout params. --- lib/search_index_backend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/search_index_backend.rb b/lib/search_index_backend.rb index 02f138450..775604b8c 100644 --- a/lib/search_index_backend.rb +++ b/lib/search_index_backend.rb @@ -240,7 +240,7 @@ return true if backend is configured end 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') pw = Setting.get('es_password') if user && !user.empty? && pw && !pw.empty?