pub fn unmark_failed_address(
    node_address: impl Into<SocketAddr>,
    authorization: impl AsRef<str>,
    route_address: impl Into<IpAddr>,
) -> Result<Request<Vec<u8>>, HttpError> {
    let mut req = Request::post(format!("{}/routeplanner/status", node_address.into()));

    let auth_value = HeaderValue::from_str(authorization.as_ref())?;
    req = req.header(AUTHORIZATION, auth_value);

    req.body(
        serde_json::to_vec(&serde_json::json!({
            "address": route_address.into(),
        }))
        .unwrap(),
    )
}
/// Unmark an IP address as being failed, meaning that it can be used again.
///
/// The response will not include a body on success.
Unmark an IP address as being failed, meaning that it can be used again.
The response will not include a body on success.
Unmark an IP address as being failed meaning that it can be used again . The response will not include a body on success .
pub fn unmark_failed_address(
    node_address: impl Into<SocketAddr>,
    authorization: impl AsRef<str>,
    route_address: impl Into<IpAddr>,
) -> Result<Request<Vec<u8>>, HttpError> {
    let mut req = Request::post(format!("{}/routeplanner/status", node_address.into()));
    let auth_value = HeaderValue::from_str(authorization.as_ref())?;
    req = req.header(AUTHORIZATION, auth_value);
    req.body(
        serde_json::to_vec(&serde_json::json!({
            "address": route_address.into(),
        }))
        .unwrap(),
    )
}
pub fn unmark_failed_address ( node_address : impl Into < SocketAddr > , authorization : impl AsRef < str > , route_address : impl Into < IpAddr > , ) -> Result < Request < Vec < u8 > > , HttpError > { let mut req = Request :: post ( format ! ( " " node_address into ( ) ) ) ; let auth_value = HeaderValue :: from_str ( authorization . as_ref ( ) ) ? ; req = req . header ( AUTHORIZATION , auth_value ) ; req . body ( serde_json :: to_vec ( & serde_json :: json ! ( { " " route_address into ( ) } ) ) . unwrap ( ) , ) }
Unmark an IP address as being failed, meaning that it can be used again.
Unmark an IP address as being failed meaning that it can be used again .
node_address
impl Into<SocketAddr>
authorization
impl AsRef<str>
route_address
impl Into<IpAddr>