diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 165d2bffc2d..16284081229 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -7,7 +7,7 @@ Library 70 true - $(NoWarn);CA1010;CA1031;CA1051;CA1063;CA1064;CA1724;CA1805;CA1816;CA2211 + $(NoWarn);CA1010;CA1031;CA1051;CA1063;CA1064;CA1724;CA1816;CA2211 $(NoWarn);S2223;S3215;S4039 $(NoWarn);RS0037; diff --git a/src/Polly/RateLimit/LockFreeTokenBucketRateLimiter.cs b/src/Polly/RateLimit/LockFreeTokenBucketRateLimiter.cs index df4c4e13030..856f33f4c6f 100644 --- a/src/Polly/RateLimit/LockFreeTokenBucketRateLimiter.cs +++ b/src/Polly/RateLimit/LockFreeTokenBucketRateLimiter.cs @@ -14,7 +14,9 @@ internal sealed class LockFreeTokenBucketRateLimiter : IRateLimiter private long _addNextTokenAtTicks; #if !NETSTANDARD2_0 +#pragma warning disable CA1805 private SpinWait _spinner = default; +#pragma warning restore CA1805 #endif ///