From 4285829cd5e345d62d18aa17e30cc347ae45cca3 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 18 Nov 2024 12:56:05 +1300 Subject: [PATCH] Prefer `limit:` option. --- lib/benchmark/http/spider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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