mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Revert "fix(bot): wait for identify limit on identify instead of shard connect"
This reverts commit 6277d72c9c.
This commit is contained in:
parent
6277d72c9c
commit
d332535ab1
1 changed files with 3 additions and 5 deletions
|
|
@ -132,6 +132,8 @@ public class Shard
|
||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
await _ratelimiter.Identify(_info.ShardId);
|
||||||
|
|
||||||
_logger.Information("Shard {ShardId}: Connecting to WebSocket", _info.ShardId);
|
_logger.Information("Shard {ShardId}: Connecting to WebSocket", _info.ShardId);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -150,10 +152,7 @@ public class Shard
|
||||||
=> _conn.Disconnect(closeStatus, null);
|
=> _conn.Disconnect(closeStatus, null);
|
||||||
|
|
||||||
private async Task SendIdentify()
|
private async Task SendIdentify()
|
||||||
{
|
=> await _conn.Send(new GatewayPacket
|
||||||
await _ratelimiter.Identify(_info.ShardId);
|
|
||||||
|
|
||||||
await _conn.Send(new GatewayPacket
|
|
||||||
{
|
{
|
||||||
Opcode = GatewayOpcode.Identify,
|
Opcode = GatewayOpcode.Identify,
|
||||||
Payload = new GatewayIdentify
|
Payload = new GatewayIdentify
|
||||||
|
|
@ -172,7 +171,6 @@ public class Shard
|
||||||
Presence = _presence,
|
Presence = _presence,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
private async Task SendResume((string SessionId, int? LastSeq) arg)
|
private async Task SendResume((string SessionId, int? LastSeq) arg)
|
||||||
=> await _conn.Send(new GatewayPacket
|
=> await _conn.Send(new GatewayPacket
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue