use tokio::sync::broadcast; #[derive(Clone)] pub struct RtrNotifier { tx: broadcast::Sender<()>, } impl RtrNotifier { pub fn new(tx: broadcast::Sender<()>) -> Self { Self { tx } } pub fn notify_cache_updated(&self) { let _ = self.tx.send(()); } }