fn populate_network_topology(&self, registry_version: RegistryVersion) -> NetworkTopology {
        loop {
            match self.try_to_populate_network_topology(registry_version) {
                Ok(network_topology) => break network_topology,
                Err(err) => {
                    warn!(
                        self.log,
                        "Unable to populate network topology: {}. Trying again...",
                        err.to_string(),
                    );
                }
            }
            sleep(std::time::Duration::from_millis(100));
        }
    }
// Populates a `NetworkTopology` from the registry at a specific version.
//
// # Warning
// If the registry is unavailable, this method keeps trying again forever until
// the registry becomes available.
Populates a `NetworkTopology` from the registry at a specific version.
Populates a ` NetworkTopology ` from the registry at a specific version .
fn populate_network_topology(&self, registry_version: RegistryVersion) -> NetworkTopology {
        loop {
            match self.try_to_populate_network_topology(registry_version) {
                Ok(network_topology) => break network_topology,
                Err(err) => {
                    warn!(
                        self.log,
                        "Unable to populate network topology: {}. Trying again...",
                        err.to_string(),
                    );
                }
            }
            sleep(std::time::Duration::from_millis(100));
        }
    }
fn populate_network_topology ( & self , registry_version : RegistryVersion ) -> NetworkTopology { loop { match self . try_to_populate_network_topology ( registry_version ) { Ok ( network_topology ) => break network_topology , Err ( err ) => { warn ! ( self log " " err to_string ( ) ) ; } } sleep ( std :: time :: Duration :: from_millis ( 100 ) ) ; } }
Populates a `NetworkTopology` from the registry at a specific version.
Populates a ` NetworkTopology ` from the registry at a specific version .
&self
registry_version
RegistryVersion
&self
registry_version
RegistryVersion
warning
If the registry is unavailable, this method keeps trying again forever until
the registry becomes available.
If the registry is unavailable this method keeps trying again forever until the registry becomes available .