pub fn from(
        registry: Arc<dyn RegistryClient>,
        node_id: NodeId,
        log: &ReplicaLogger,
    ) -> XNetEndpointConfig {
        XNetEndpointConfig::try_from(registry, node_id)
            // If the node is not in the registry or has default values, return the default.
            .unwrap_or_else(|| {
                info!(log, "No XNet configuration for node {}. This is an error in production, but may be ignored in single-subnet test deployments.", node_id);
                Default::default()
            })
    }
/// Retrieves the `XNetEndpointConfig` for a given node from the latest
/// available registry version.
///
/// Logs an error message and returns the default value (`127.0.0.1:0`) if
/// the `NodeRecord` registry entry does not exist; its `xnet` field is
/// `None`; `xnet.ip_addr` is empty; or `xnet.port` is 0.
///
/// # Panics
///
/// Panics if registry reading fails or the IP address cannot be parsed.
Retrieves the `XNetEndpointConfig` for a given node from the latest
available registry version.


Retrieves the ` XNetEndpointConfig ` for a given node from the latest available registry version .
pub fn from(
        registry: Arc<dyn RegistryClient>,
        node_id: NodeId,
        log: &ReplicaLogger,
    ) -> XNetEndpointConfig {
        XNetEndpointConfig::try_from(registry, node_id)
            // If the node is not in the registry or has default values, return the default.
            .unwrap_or_else(|| {
                info!(log, "No XNet configuration for node {}. This is an error in production, but may be ignored in single-subnet test deployments.", node_id);
                Default::default()
            })
    }
pub fn from ( registry : Arc < dyn RegistryClient > , node_id : NodeId , log : & ReplicaLogger , ) -> XNetEndpointConfig { XNetEndpointConfig :: try_from ( registry , node_id ) // If the node is not in the registry or has default values, return the default. . unwrap_or_else ( | | { info ! ( log " " node_id ) ; Default :: default ( ) } ) }
Retrieves the `XNetEndpointConfig` for a given node from the latest
available registry version.
Retrieves the ` XNetEndpointConfig ` for a given node from the latest available registry version .
registry
Arc<dyn RegistryClient>
node_id
NodeId
log
&ReplicaLogger
registry
Arc<dyn RegistryClient>
node_id
NodeId
log
&ReplicaLogger
panics
Panics if registry reading fails or the IP address cannot be parsed.
Panics if registry reading fails or the IP address cannot be parsed .