Skip to main content

fetch_answered

Function fetch_answered 

Source
pub async fn fetch_answered(
    client: &Client,
    filter: Filter,
    timeout: Duration,
) -> Result<Vec<Event>, String>
Expand description

Read filter from the user’s read relays, or Err unless at least one relay reached EOSE.

The SDK’s fetch reports a timeout, a disconnect and a refusal as an empty success, so it cannot tell “you hold none” from “nobody answered”. A read-modify-write needs the difference.