async fn fetch_catch_up_package(
        &self,
        url: Url,
        param: Option<CatchUpPackageParam>,
    ) -> Option<pb::CatchUpPackage> {
        Agent::new_with_client(self.client.clone(), url, Sender::Anonymous)
            .query_cup_endpoint(param)
            .await
            .map_err(|e| warn!(self.logger, "Failed to query CUP endpoint: {:?}", e))
            .ok()?
    }
// Attempt to fetch a `CatchUpPackage` from the given endpoint.
//
// Does not check the signature of the CUP. This has to be done by the
// caller.
Attempt to fetch a `CatchUpPackage` from the given endpoint.
Does not check the signature of the CUP. This has to be done by the
caller.
Attempt to fetch a ` CatchUpPackage ` from the given endpoint . Does not check the signature of the CUP . This has to be done by the caller .
async fn fetch_catch_up_package(
        &self,
        url: Url,
        param: Option<CatchUpPackageParam>,
    ) -> Option<pb::CatchUpPackage> {
        Agent::new_with_client(self.client.clone(), url, Sender::Anonymous)
            .query_cup_endpoint(param)
            .await
            .map_err(|e| warn!(self.logger, "Failed to query CUP endpoint: {:?}", e))
            .ok()?
    }
async fn fetch_catch_up_package ( & self , url : Url , param : Option < CatchUpPackageParam > , ) -> Option < pb :: CatchUpPackage > { Agent :: new_with_client ( self . client . clone ( ) , url , Sender :: Anonymous ) . query_cup_endpoint ( param ) . await . map_err ( | e | warn ! ( self logger " " e ) ) . ok ( ) ? }
Attempt to fetch a `CatchUpPackage` from the given endpoint.
Attempt to fetch a ` CatchUpPackage ` from the given endpoint .
&self
url
Url
param
Option<CatchUpPackageParam>
&self
url
Url
param
Option<CatchUpPackageParam>