Config hot reloading API

This commit is contained in:
mdecimus
2024-03-28 17:21:32 +01:00
parent 16b0465933
commit cb4d2f15ae
64 changed files with 1118 additions and 846 deletions

View File

@@ -116,3 +116,14 @@ impl Default for BayesTokenCache {
}
}
}
impl Clone for BayesTokenCache {
fn clone(&self) -> Self {
Self {
positive: Mutex::new(self.positive.lock().clone()),
negative: Mutex::new(self.negative.lock().clone()),
ttl_negative: self.ttl_negative,
ttl_positive: self.ttl_positive,
}
}
}