fix twilight gateway ratelimiter
This commit is contained in:
parent
92e638613f
commit
fc5825a941
@ -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…
x
Reference in New Issue
Block a user