Skip to content

Commit

Permalink
auto code reveiw
Browse files Browse the repository at this point in the history
  • Loading branch information
RaynaldM committed May 31, 2024
1 parent bb3eb2e commit 1de22fd
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 @@ -90,7 +90,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 @@ -109,7 +108,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 1de22fd

Please sign in to comment.