mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-04-01 00:45:27 +00:00
implement in-memory ruleset update
This commit is contained in:
parent
b03bdd0e3a
commit
30a77072ed
4 changed files with 85 additions and 32 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue