删除无用字段

This commit is contained in:
xiuting.xu
2026-06-25 14:37:19 +08:00
parent b105b3b7d0
commit cc3518897f
4 changed files with 3 additions and 14 deletions

View File

@@ -741,8 +741,6 @@ pub struct CacheMemoryStats {
pub snapshot_payload_counts: [usize; VERSION_COUNT],
pub delta_lengths: [usize; VERSION_COUNT],
pub delta_payload_counts: [usize; VERSION_COUNT],
pub snapshot_arc_strong_counts: [usize; VERSION_COUNT],
pub rtr_payloads_arc_strong_counts: [usize; VERSION_COUNT],
}
#[derive(Debug, Clone, Copy, Default, Serialize)]
@@ -817,18 +815,11 @@ impl RtrCache {
.map(|delta| delta.announced().len() + delta.withdrawn().len())
.sum()
});
let snapshot_arc_strong_counts =
std::array::from_fn(|idx| Arc::strong_count(&self.versions[idx].snapshot));
let rtr_payloads_arc_strong_counts =
std::array::from_fn(|idx| Arc::strong_count(&self.versions[idx].rtr_payloads));
CacheMemoryStats {
serials: self.serials(),
snapshot_payload_counts,
delta_lengths,
delta_payload_counts,
snapshot_arc_strong_counts,
rtr_payloads_arc_strong_counts,
}
}

View File

@@ -406,7 +406,7 @@ impl ReportContext {
let max_connections = service_stats.max_connections();
let generated_at = self.report_now(timezone);
let metadata = ReportMetadata {
schema_version: 2,
schema_version: 1,
generated_at,
phase: phase.to_string(),
};