reduce processing rate of lodestone verification significantly

This commit is contained in:
rootdarkarchon
2022-12-17 12:14:53 +01:00
parent c358b6b3c4
commit f9d9e2608e

View File

@@ -132,8 +132,8 @@ internal class DiscordBot : IHostedService
db.Update(lodestoneAuth.User); db.Update(lodestoneAuth.User);
} }
await Task.Delay(100);
await db.SaveChangesAsync().ConfigureAwait(false); await db.SaveChangesAsync().ConfigureAwait(false);
await Task.Delay(1000);
} }
foreach (var group in aliasedGroups) foreach (var group in aliasedGroups)
@@ -154,8 +154,8 @@ internal class DiscordBot : IHostedService
db.Update(group); db.Update(group);
} }
await Task.Delay(100);
await db.SaveChangesAsync().ConfigureAwait(false); await db.SaveChangesAsync().ConfigureAwait(false);
await Task.Delay(1000);
} }
} }
} }