fix: make SessionStatsSnapshot fields pub

This commit is contained in:
KevinT3Hu 2025-04-13 14:09:57 +08:00
parent e4595a76c4
commit f6c58add58
No known key found for this signature in database
GPG key ID: 31E8F8C7FF0292B1

View file

@ -8,12 +8,12 @@ use super::SessionStats;
#[derive(Debug, Serialize)] #[derive(Debug, Serialize)]
pub struct SessionStatsSnapshot { pub struct SessionStatsSnapshot {
fetched_bytes: u64, pub fetched_bytes: u64,
uploaded_bytes: u64, pub uploaded_bytes: u64,
download_speed: Speed, pub download_speed: Speed,
upload_speed: Speed, pub upload_speed: Speed,
peers: AggregatePeerStats, pub peers: AggregatePeerStats,
uptime_seconds: u64, pub uptime_seconds: u64,
} }
impl From<&SessionStats> for SessionStatsSnapshot { impl From<&SessionStats> for SessionStatsSnapshot {