lib/benchmark/http/command/concurrency.rb in benchmark-http-0.5.0 vs lib/benchmark/http/command/concurrency.rb in benchmark-http-0.6.0

- old
+ new

@@ -53,10 +53,10 @@ concurrency.times.map do task.async do client = Async::HTTP::Client.new(endpoint, endpoint.protocol) statistics.sample(confidence_factor) do - response = client.get(request_path) + response = client.get(request_path).tap(&:finish) end client.close end end.each(&:wait)