pub fn read_session_endpoints(session_home: &Path) -> Vec<Endpoint>Expand description
Read a session’s relay.json and return its self.endpoints[]
array (v0.5.17 dual-slot). Empty Vec on any read/parse error — this
is a best-effort discovery helper, not a verification tool. A pre-
v0.5.17 session writes only the legacy flat fields; self_endpoints
promotes those to a federation-only Endpoint, so the result is
still meaningful for legacy sessions.
v0.5.20 BUG FIX: this used to join relay-state.json, which is
not the canonical filename (config::relay_state_path returns
relay.json). The mis-named read silently no-op’d and
list-local always returned an empty local map as a result.
Companion to the cli.rs::try_allocate_local_slot filename fix
in the same release — that helper had the symmetric write-side
bug, so the local endpoint never got persisted in the first place.