diff --git a/lib/network_resiliency.rb b/lib/network_resiliency.rb index a2e0e2f..175d89e 100644 --- a/lib/network_resiliency.rb +++ b/lib/network_resiliency.rb @@ -362,13 +362,11 @@ def timeouts_for(adapter:, action:, destination:, max: nil, units: :ms) # make a second, more lenient attempt if p99 * 100 < max - # max is excessively high timeouts << p99 * 100 elsif p99 * 10 < max # use remaining time for second attempt timeouts << max - p99 else - # max is smallish timeouts << max NetworkResiliency.statsd&.increment(