some whitespace stuff

This commit is contained in:
rick 2010-10-05 11:39:13 -07:00
parent 647c8fe6e1
commit 176c647bdf
2 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@ module Faraday
def call(env) def call(env)
super super
hydra = env[:parallel_manager] || self.class.setup_parallel_manager
req = ::Typhoeus::Request.new env[:url].to_s, req = ::Typhoeus::Request.new env[:url].to_s,
:method => env[:method], :method => env[:method],
:body => env[:body], :body => env[:body],
@ -35,6 +35,7 @@ module Faraday
env[:response].finish(env) env[:response].finish(env)
end end
hydra = env[:parallel_manager] || self.class.setup_parallel_manager
hydra.queue req hydra.queue req
if !env[:parallel_manager] if !env[:parallel_manager]