async fn ping_backend(
        &self,
    ) -> Result<Option<backend::TlsPayload>, Box<dyn std::error::Error>> {
        // perform the ping on the backend server
        let (crt, token_key) = self.gs.backend.ping().await?;

        // update the token verifier with the new token_key
        if let Some(token_key) = &token_key {
            let mut verifier = tokens::TokenVerifier::new();
            verifier.push_key_b64(token_key)?;
            self.gs.verifier.store(Arc::new(verifier));
        }

        // return certificate for HTTP server
        Ok(crt)
    }
/// Pings the backend server (reporting any errors that occur), then returns the ssl
/// certificate and whether this ssl certificate is new
Pings the backend server (reporting any errors that occur), then returns the ssl
certificate and whether this ssl certificate is new
Pings the backend server ( reporting any errors that occur ) then returns the ssl certificate and whether this ssl certificate is new
async fn ping_backend(
        &self,
    ) -> Result<Option<backend::TlsPayload>, Box<dyn std::error::Error>> {
        // perform the ping on the backend server
        let (crt, token_key) = self.gs.backend.ping().await?;
        // update the token verifier with the new token_key
        if let Some(token_key) = &token_key {
            let mut verifier = tokens::TokenVerifier::new();
            verifier.push_key_b64(token_key)?;
            self.gs.verifier.store(Arc::new(verifier));
        }
        // return certificate for HTTP server
        Ok(crt)
    }
async fn ping_backend ( & self , ) -> Result < Option < backend :: TlsPayload > , Box < dyn std :: error :: Error > > { // perform the ping on the backend server let ( crt , token_key ) = self . gs . backend . ping ( ) . await ? ; // update the token verifier with the new token_key if let Some ( token_key ) = & token_key { let mut verifier = tokens :: TokenVerifier :: new ( ) ; verifier . push_key_b64 ( token_key ) ? ; self . gs . verifier . store ( Arc :: new ( verifier ) ) ; } // return certificate for HTTP server Ok ( crt ) }
Pings the backend server (reporting any errors that occur), then returns the ssl
certificate and whether this ssl certificate is new
Pings the backend server ( reporting any errors that occur ) then returns the ssl certificate and whether this ssl certificate is new
&self