Skip to content

Commit 8fb3274

Browse files
committed
Revert CS change
1 parent 3db21bd commit 8fb3274

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Microsoft.IdentityModel.Protocols/Configuration/ConfigurationManager.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ public virtual async Task<T> GetConfigurationAsync(CancellationToken cancel)
179179
#endif
180180
DateTimeOffset.UtcNow;
181181

182-
// Add a random amount between 0 and 5% of AutomaticRefreshInterval jitter to avoid spike traffic to IdentityProvider.
183-
_syncAfter = DateTimeUtil.Add(utcNow.UtcDateTime, AutomaticRefreshInterval +
184-
TimeSpan.FromSeconds(new Random().Next((int)AutomaticRefreshInterval.TotalSeconds / 20)));
185182

186-
_currentConfiguration = configuration;
187-
}
188-
catch (Exception ex)
189-
{
190-
fetchMetadataFailure = ex;
183+
// Add a random amount between 0 and 5% of AutomaticRefreshInterval jitter to avoid spike traffic to IdentityProvider.
184+
_syncAfter = DateTimeUtil.Add(utcNow.UtcDateTime, AutomaticRefreshInterval +
185+
TimeSpan.FromSeconds(new Random().Next((int)AutomaticRefreshInterval.TotalSeconds / 20)));
186+
_currentConfiguration = configuration;
187+
}
188+
catch (Exception ex)
189+
{
190+
fetchMetadataFailure = ex;
191191

192192
DateTime utcNow =
193193
#if SUPPORTS_TIME_PROVIDER

0 commit comments

Comments
 (0)