pub(crate) fn fetch_update_hint(
        &self,
        id: &Identity,
        denylisted_depls: BTreeSet<Release>,
        allow_downgrade: bool,
    ) -> Pin<Box<dyn Future<Output = Option<Release>>>> {
        UPDATE_CHECKS.inc();
        log::trace!("checking upstream Cincinnati server for updates");

        let update = self
            .next_update(id, denylisted_depls, allow_downgrade)
            .unwrap_or_else(|e| {
                UPDATE_CHECKS_ERRORS
                    .with_label_values(&[&e.error_kind()])
                    .inc();
                log::error!("failed to check Cincinnati for updates: {}", e);
                None
            });
        Box::pin(update)
    }
/// Fetch next update-hint from Cincinnati.
Fetch next update-hint from Cincinnati.
Fetch next update - hint from Cincinnati .
pub(crate) fn fetch_update_hint(
        &self,
        id: &Identity,
        denylisted_depls: BTreeSet<Release>,
        allow_downgrade: bool,
    ) -> Pin<Box<dyn Future<Output = Option<Release>>>> {
        UPDATE_CHECKS.inc();
        log::trace!("checking upstream Cincinnati server for updates");
        let update = self
            .next_update(id, denylisted_depls, allow_downgrade)
            .unwrap_or_else(|e| {
                UPDATE_CHECKS_ERRORS
                    .with_label_values(&[&e.error_kind()])
                    .inc();
                log::error!("failed to check Cincinnati for updates: {}", e);
                None
            });
        Box::pin(update)
    }
pub ( crate ) fn fetch_update_hint ( & self , id : & Identity , denylisted_depls : BTreeSet < Release > , allow_downgrade : bool , ) -> Pin < Box < dyn Future < Output = Option < Release > > > > { UPDATE_CHECKS . inc ( ) ; log :: trace ! ( " " ) ; let update = self . next_update ( id , denylisted_depls , allow_downgrade ) . unwrap_or_else ( | e | { UPDATE_CHECKS_ERRORS . with_label_values ( & [ & e . error_kind ( ) ] ) . inc ( ) ; log :: error ! ( " " e ) ; None } ) ; Box :: pin ( update ) }
Fetch next update-hint from Cincinnati.
Fetch next update - hint from Cincinnati .
&self
id
&Identity
denylisted_depls
BTreeSet<Release>
allow_downgrade
bool