mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
fix twilight gateway ratelimiter
This commit is contained in:
parent
92e638613f
commit
fc5825a941
1 changed files with 5 additions and 2 deletions
|
|
@ -22,9 +22,12 @@ public class TwilightGatewayRatelimiter: IGatewayRatelimiter
|
||||||
{
|
{
|
||||||
_logger.Information("Shard {ShardId}: Requesting identify at gateway queue {GatewayQueueUrl}",
|
_logger.Information("Shard {ShardId}: Requesting identify at gateway queue {GatewayQueueUrl}",
|
||||||
shard, _url);
|
shard, _url);
|
||||||
await _httpClient.GetAsync(_url);
|
await _httpClient.GetAsync(_url + "?shard=" + shard);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
catch (TimeoutException) { }
|
catch (TaskCanceledException)
|
||||||
|
{
|
||||||
|
_logger.Warning("Shard {ShardId}: Gateway queue timed out, retrying", shard);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue