feat(gateway): add reconnect timestamp to shard state

This commit is contained in:
asleepyskye 2025-08-27 22:31:23 -04:00
parent 2fc5f2a9d9
commit 1378379e14
4 changed files with 18 additions and 6 deletions

View file

@ -8,11 +8,13 @@ pub struct ShardState {
/// unix timestamp
pub last_heartbeat: i32,
pub last_connection: i32,
pub last_reconnect: i32,
pub cluster_id: Option<i32>,
}
pub enum ShardStateEvent {
Closed,
Heartbeat,
Reconnect,
Other,
}