Skip to main content

deserialize_block_gossip_peer_ips

Function deserialize_block_gossip_peer_ips 

Source
fn deserialize_block_gossip_peer_ips<'de, D>(
    deserializer: D,
) -> Result<Vec<IpAddr>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserializes block_gossip_peer_ips from either a sequence or a JSON-array string, so it can be set through the environment (which cannot express TOML arrays) in cross-container deployments where the sidecar’s source IP is not loopback.