mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
reduce processing rate of lodestone verification significantly
This commit is contained in:
parent
c358b6b3c4
commit
f9d9e2608e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue