mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add a little leeway to shard identifying
This commit is contained in:
parent
d61f61fead
commit
333530d24d
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,8 @@ namespace Myriad.Gateway
|
|||
{
|
||||
public class ShardIdentifyRatelimiter
|
||||
{
|
||||
private static readonly TimeSpan BucketLength = TimeSpan.FromSeconds(5);
|
||||
// docs specify 5 seconds, but we're actually throttling connections, not identify, so we need a bit of leeway
|
||||
private static readonly TimeSpan BucketLength = TimeSpan.FromSeconds(6);
|
||||
|
||||
private readonly ConcurrentDictionary<int, ConcurrentQueue<TaskCompletionSource>> _buckets = new();
|
||||
private readonly int _maxConcurrency;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue