删除无用字段
This commit is contained in:
9
src/rtr/cache/core.rs
vendored
9
src/rtr/cache/core.rs
vendored
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user