/// Fetch the Gossip configuration from the registry.
Fetch the Gossip configuration from the registry.
Fetch the Gossip configuration from the registry .
pub(crate) fn fetch_gossip_config(
    registry_client: Arc<dyn RegistryClient>,
    subnet_id: SubnetId,
) -> GossipConfig {
    if let Ok(Some(Some(gossip_config))) =
        registry_client.get_gossip_config(subnet_id, registry_client.get_latest_version())
    {
        gossip_config
    } else {
        p2p::build_default_gossip_config()
    }
}
pub ( crate ) fn fetch_gossip_config ( registry_client : Arc < dyn RegistryClient > , subnet_id : SubnetId , ) -> GossipConfig { if let Ok ( Some ( Some ( gossip_config ) ) ) = registry_client . get_gossip_config ( subnet_id , registry_client . get_latest_version ( ) ) { gossip_config } else { p2p :: build_default_gossip_config ( ) } }
Fetch the Gossip configuration from the registry.
Fetch the Gossip configuration from the registry .
registry_client
Arc<dyn RegistryClient>
subnet_id
SubnetId