pub fn deploy_register_driver() {
    let mut register_attempt = invoke_cli_register();
    let mut retry_secs = Duration::from_secs(1);
    while let Err(attempt) = register_attempt {
        REGISTER_DRIVER_FAILURES.inc();
        log::error!("{}\nretrying in {:?}", attempt, retry_secs,);
        // Use `std::thread::sleep` because the rpm-ostree actor is spawned in a SyncArbiter.
        std::thread::sleep(retry_secs);
        register_attempt = invoke_cli_register();
        if retry_secs < Duration::from_secs(256) {
            retry_secs *= 2;
        }
    }
}
/// Register as the update driver.
/// Keep attempting to register as driver for rpm-ostree, with exponential backoff
/// capped at 256 seconds.
Register as the update driver.
Keep attempting to register as driver for rpm-ostree, with exponential backoff
capped at 256 seconds.
Register as the update driver . Keep attempting to register as driver for rpm - ostree with exponential backoff capped at 256 seconds .
pub fn deploy_register_driver() {
    let mut register_attempt = invoke_cli_register();
    let mut retry_secs = Duration::from_secs(1);
    while let Err(attempt) = register_attempt {
        REGISTER_DRIVER_FAILURES.inc();
        log::error!("{}\nretrying in {:?}", attempt, retry_secs,);
        // Use `std::thread::sleep` because the rpm-ostree actor is spawned in a SyncArbiter.
        std::thread::sleep(retry_secs);
        register_attempt = invoke_cli_register();
        if retry_secs < Duration::from_secs(256) {
            retry_secs *= 2;
        }
    }
}
pub fn deploy_register_driver ( ) { let mut register_attempt = invoke_cli_register ( ) ; let mut retry_secs = Duration :: from_secs ( 1 ) ; while let Err ( attempt ) = register_attempt { REGISTER_DRIVER_FAILURES . inc ( ) ; log :: error ! ( " \n " attempt retry_secs ) ; // Use `std::thread::sleep` because the rpm-ostree actor is spawned in a SyncArbiter. std :: thread :: sleep ( retry_secs ) ; register_attempt = invoke_cli_register ( ) ; if retry_secs < Duration :: from_secs ( 256 ) { retry_secs *= 2 ; } } }
Register as the update driver.
Register as the update driver .