pub fn fetch_peer_frontier(url: &str) -> Result<Project, String>Expand description
v0.39.1: Fetch a peer’s frontier JSON over HTTP. The URL is
expected to serve a JSON-serialized Project. Blocking call —
vela federation sync is a one-shot CLI verb, not a service.
Implementation note: the CLI top-level dispatcher runs inside a
tokio runtime, but reqwest::blocking panics if dropped inside
an async context. We escape into a dedicated OS thread that owns
its own runtime, making the call safe to issue from sync code
regardless of who’s calling it.
Verification of peer signatures (and registry entries) is a separate concern, addressed in v0.39.2+. v0.39.1 trusts the transport so the sync diff/event-emission machinery can be validated against real peer state first.