fix twilight gateway ratelimiter

This commit is contained in:
spiral 2021-12-23 22:02:45 -05:00
parent 92e638613f
commit fc5825a941
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -22,9 +22,12 @@ public class TwilightGatewayRatelimiter: IGatewayRatelimiter
{
_logger.Information("Shard {ShardId}: Requesting identify at gateway queue {GatewayQueueUrl}",
shard, _url);
await _httpClient.GetAsync(_url);
await _httpClient.GetAsync(_url + "?shard=" + shard);
return;
}
catch (TimeoutException) { }
catch (TaskCanceledException)
{
_logger.Warning("Shard {ShardId}: Gateway queue timed out, retrying", shard);
}
}
}