Skip to content

Commit

Permalink
Prefer limit: option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 17, 2024
1 parent 0809fcd commit 4285829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/benchmark/http/spider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def extract_links(url, response)
urls.each do |url|
endpoint = Async::HTTP::Endpoint.parse(url, timeout: 10)

Async::HTTP::Client.open(endpoint, protocol: endpoint.protocol, connection_limit: 4) do |client|
Async::HTTP::Client.open(endpoint, protocol: endpoint.protocol, limit: 4) do |client|
fetch(statistics, client, endpoint.url, &block).wait
end
end
Expand Down

0 comments on commit 4285829

Please # to comment.