Skip to main content

publish_native_announcement_attempt

Function publish_native_announcement_attempt 

Source
pub(crate) async fn publish_native_announcement_attempt<F, Fut>(
    announcement: Result<ServiceAnnouncement>,
    announce_tx: Option<Arc<Mutex<Option<Sender<Result<(), String>>>>>>,
    publish: F,
) -> Result<()>
where F: FnOnce(ServiceAnnouncement) -> Fut, Fut: Future<Output = Result<()>>,
Expand description

The required first result covers both fresh-authority projection and the Discovery publication. An authority error must not bypass the handshake.