Skip to content

Commit 4285829

Browse files
committed
Prefer limit: option.
1 parent 0809fcd commit 4285829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/benchmark/http/spider.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def extract_links(url, response)
114114
urls.each do |url|
115115
endpoint = Async::HTTP::Endpoint.parse(url, timeout: 10)
116116

117-
Async::HTTP::Client.open(endpoint, protocol: endpoint.protocol, connection_limit: 4) do |client|
117+
Async::HTTP::Client.open(endpoint, protocol: endpoint.protocol, limit: 4) do |client|
118118
fetch(statistics, client, endpoint.url, &block).wait
119119
end
120120
end

0 commit comments

Comments
 (0)