Skip to content

Commit

Permalink
mmmmmmmmmhhh i love db stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Jun 24, 2024
1 parent bcb053b commit 3cc8454
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReplayBrowser/Services/ProfilePregeneratorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ private async void DoWork(object? state)
{
await replayHelper.GetPlayerProfile(guid, new AuthenticationState(new ClaimsPrincipal()), true, true);
Log.Information("Pregenerated profile for {Guid}.", guid);
// in order to prevent db spamming, we wait a bit before the next profile
await Task.Delay(10000); // 10 seconds
}
sw.Stop();
Log.Information("Profile pregeneration finished in {ElapsedMilliseconds}ms.", sw.ElapsedMilliseconds);
Expand Down

0 comments on commit 3cc8454

Please sign in to comment.