diff --git a/lib/benchmark/http/spider.rb b/lib/benchmark/http/spider.rb index d7f7793..db476b4 100644 --- a/lib/benchmark/http/spider.rb +++ b/lib/benchmark/http/spider.rb @@ -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