Skip to content

Commit

Permalink
Revert CS change
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Aug 2, 2024
1 parent 3db21bd commit 8fb3274
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ public virtual async Task<T> GetConfigurationAsync(CancellationToken cancel)
#endif
DateTimeOffset.UtcNow;

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

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

DateTime utcNow =
#if SUPPORTS_TIME_PROVIDER
Expand Down

0 comments on commit 8fb3274

Please sign in to comment.