lib/benchmark/http/command/latency.rb in benchmark-http-0.14.0 vs lib/benchmark/http/command/latency.rb in benchmark-http-0.14.1
- old
+ new
@@ -50,10 +50,10 @@
statistics = Statistics.new(concurrency)
task = Async::Task.current
concurrency.times.map do
task.async do
- client = Async::HTTP::Client.new(endpoint, endpoint.protocol)
+ client = Async::HTTP::Client.new(endpoint, protocol: endpoint.protocol)
statistics.sample(confidence_factor) do
response = client.get(request_path).tap(&:finish)
end