Skip to content

Commit

Permalink
auto code reveiw
Browse files Browse the repository at this point in the history
  • Loading branch information
RaynaldM authored and raman-m committed Jun 14, 2024
1 parent 9076968 commit f69831a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Ocelot/Configuration/QoSOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public QoSOptions(
/// </value>
public double FailureRatio { get; } = .8;


/// <summary>
/// The time period over which the failure-success ratio is calculated (in milliseconds).
/// </summary>
Expand All @@ -108,7 +107,7 @@ public QoSOptions(
/// </value>
public int TimeoutValue { get; }

public bool UseQos => ExceptionsAllowedBeforeBreaking > 0 || TimeoutValue > 0;
public bool UseQos => ExceptionsAllowedBeforeBreaking >= 2 || TimeoutValue > 0;

public bool IsValid() =>
ExceptionsAllowedBeforeBreaking <= 0 ||
Expand Down

0 comments on commit f69831a

Please sign in to comment.