Skip to content

Commit

Permalink
fix: refactored adaptive throttling setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kulbachnyi.v committed Dec 28, 2023
1 parent 309bbde commit edfd672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Vostok.Singular.Core/Configuration/SingularSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ public class ClientSettings
public bool UseReplicaBudgeting = true;

public bool UseAdaptiveThrottling = true;

public AdaptiveThrottlingSettings AdaptiveThrottlingSettings = new AdaptiveThrottlingSettings();

public bool UseDatacenterWeightModifiers = true;

Expand Down Expand Up @@ -373,8 +375,6 @@ public class ClientSettings
public bool RewriteHostHeaderWithTargetHostValue = false;

public HostingTopologyTransformSettings HostingTopologyTransform = new HostingTopologyTransformSettings();

public AdaptiveThrottlingSettings AdaptiveThrottlingSettings = new AdaptiveThrottlingSettings();
}

#endregion
Expand Down Expand Up @@ -535,7 +535,7 @@ public class AdaptiveThrottlingOptions
public class AdaptiveThrottlingSettings
{
public Dictionary<RequestPriority, AdaptiveThrottlingOptions> Options = new Dictionary<RequestPriority, AdaptiveThrottlingOptions>();
public AdaptiveThrottlingOptions DefaultIOptions = new AdaptiveThrottlingOptions();
public AdaptiveThrottlingOptions DefaultOptions = new AdaptiveThrottlingOptions();
}

#endregion
Expand Down

0 comments on commit edfd672

Please sign in to comment.