Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpep committed Mar 13, 2024
1 parent c1b54d3 commit 1351f3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/network_resiliency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1351f3c

Please sign in to comment.