Skip to main content

fetch_raw

Function fetch_raw 

Source
pub async fn fetch_raw(
    client: &Client,
    my_pk: PublicKey,
    pref: Pref,
) -> Result<Option<RelayCopy>, String>
Expand description

Fetch a list’s newest relay copy, Ok(None) when the relays hold none.

Err when no relay answered or the copy can’t be opened: neither says what the relays hold, and treating it as “none” would let this device publish its emptier view over the real one.