rpki/src/rtr/server/notifier.rs
2026-04-01 16:24:01 +08:00

17 lines
286 B
Rust

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(());
}
}