内存优化

This commit is contained in:
xiuting.xu
2026-05-13 14:57:43 +08:00
parent 9dc69e5f31
commit ad76745619
3 changed files with 102 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ impl RtrNotifier {
Self { tx }
}
pub fn notify_cache_updated(&self) {
let _ = self.tx.send(());
pub fn notify_cache_updated(&self) -> usize {
self.tx.send(()).unwrap_or_default()
}
}