mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: add missing file, oops
This commit is contained in:
parent
4596d98670
commit
643c494ffb
1 changed files with 12 additions and 0 deletions
12
lib/libpk/src/state.rs
Normal file
12
lib/libpk/src/state.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#[derive(serde::Serialize, serde::Deserialize, Clone, Default)]
|
||||||
|
pub struct ShardState {
|
||||||
|
pub shard_id: i32,
|
||||||
|
pub up: bool,
|
||||||
|
pub disconnection_count: i32,
|
||||||
|
/// milliseconds
|
||||||
|
pub latency: i32,
|
||||||
|
/// unix timestamp
|
||||||
|
pub last_heartbeat: i32,
|
||||||
|
pub last_connection: i32,
|
||||||
|
pub cluster_id: Option<i32>,
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue