pub fn relay_reach_from_decoded(
config: &TransportConfig,
) -> Option<TransportConfig>Expand description
Build the producer-chosen relay’s wire-reach crate::stream_info::TransportConfig
from a DID-document transport entry decoded by crate::service_entry (#358).
This is the bridge that keeps the stream relay address and the DID transport
address from drifting: a node resolves its relay’s DID service entry (default
#atproto_pds), decodes it with the shared crate::service_entry::decode_service_entry
codec, and passes the resulting crate::transport::TransportConfig here to
obtain the wire-reach form to place in a ProducerReachConfig.
Returns None for same-host transports (ipc/inproc/systemd-fd), which
are never network-routable relay endpoints.