pub(crate) async fn leave_federation( gw: &Gatewayd, fed_id: String, expected_scid: u64, ) -> Result<FederationInfo>
Leaves the specified federation by issuing a leave-fed POST request to the gateway.
leave-fed