implement in-memory ruleset update

This commit is contained in:
postscriptum 2026-03-22 09:18:09 +02:00
parent b03bdd0e3a
commit 30a77072ed
4 changed files with 85 additions and 32 deletions

View file

@ -16,6 +16,12 @@ pub struct Total {
}
impl Total {
pub fn with_entries(entries: u64) -> Self {
Self {
entries: entries.into(),
..Self::default()
}
}
pub fn snapshot(&self) -> Snapshot {
Snapshot {
request: self.request.load(Ordering::Relaxed),