Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 21, 2024
1 parent c321b89 commit 8672fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/async/http/faraday/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,13 @@ def call(env)
if parallel_manager = env.parallel_manager
parallel_manager.async do
perform_request(env)

# Do I need this line?
env.response.finish(env)
end
else
perform_request(env)
end

return env.response
@app.call(env)
end

private
Expand Down
2 changes: 1 addition & 1 deletion test/async/http/faraday/adapter/parallel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
adapter.in_parallel do
response1 = adapter.get("/index")
response2 = adapter.get("/index")
resposne3 = adapter.get("/index")
response3 = adapter.get("/index")
end

expect(response1.body).to be == 'Hello World'
Expand Down

0 comments on commit 8672fdf

Please sign in to comment.