diff --git a/src/Polly.Specs/RateLimit/AsyncRateLimitPolicySpecs.cs b/src/Polly.Specs/RateLimit/AsyncRateLimitPolicySpecs.cs index 7bc7bacf2d3..24b70fa2e50 100644 --- a/src/Polly.Specs/RateLimit/AsyncRateLimitPolicySpecs.cs +++ b/src/Polly.Specs/RateLimit/AsyncRateLimitPolicySpecs.cs @@ -18,17 +18,17 @@ public void Dispose() protected override IRateLimitPolicy GetPolicyViaSyntax(int numberOfExecutions, TimeSpan perTimeSpan) { - return Policy.RateLimitAsync(numberOfExecutions, perTimeSpan); + return Policy.RateLimitAsync(numberOfExecutions, perTimeSpan); } protected override IRateLimitPolicy GetPolicyViaSyntax(int numberOfExecutions, TimeSpan perTimeSpan, int maxBurst) { - return Policy.RateLimitAsync(numberOfExecutions, perTimeSpan, maxBurst); + return Policy.RateLimitAsync(numberOfExecutions, perTimeSpan, maxBurst); } protected override (bool, TimeSpan) TryExecuteThroughPolicy(IRateLimitPolicy policy) { - if (policy is AsyncRateLimitPolicy typedPolicy) + if (policy is AsyncRateLimitPolicy typedPolicy) { try { diff --git a/src/Polly.Specs/RateLimit/RateLimitPolicySpecs.cs b/src/Polly.Specs/RateLimit/RateLimitPolicySpecs.cs index e8641e87457..dec7aa35f0d 100644 --- a/src/Polly.Specs/RateLimit/RateLimitPolicySpecs.cs +++ b/src/Polly.Specs/RateLimit/RateLimitPolicySpecs.cs @@ -17,17 +17,17 @@ public void Dispose() protected override IRateLimitPolicy GetPolicyViaSyntax(int numberOfExecutions, TimeSpan perTimeSpan) { - return Policy.RateLimit(numberOfExecutions, perTimeSpan); + return Policy.RateLimit(numberOfExecutions, perTimeSpan); } protected override IRateLimitPolicy GetPolicyViaSyntax(int numberOfExecutions, TimeSpan perTimeSpan, int maxBurst) { - return Policy.RateLimit(numberOfExecutions, perTimeSpan, maxBurst); + return Policy.RateLimit(numberOfExecutions, perTimeSpan, maxBurst); } protected override (bool, TimeSpan) TryExecuteThroughPolicy(IRateLimitPolicy policy) { - if (policy is RateLimitPolicy typedPolicy) + if (policy is RateLimitPolicy typedPolicy) { try { diff --git a/src/Polly.Specs/RateLimit/RateLimitPolicyTResultSpecs.cs b/src/Polly.Specs/RateLimit/RateLimitPolicyTResultSpecs.cs index 76d90deb796..e67df0c2fca 100644 --- a/src/Polly.Specs/RateLimit/RateLimitPolicyTResultSpecs.cs +++ b/src/Polly.Specs/RateLimit/RateLimitPolicyTResultSpecs.cs @@ -1,5 +1,4 @@ using System; -using System.Threading.Tasks; using Polly.RateLimit; using Polly.Specs.Helpers; using Polly.Specs.Helpers.RateLimit;