Skip to main content

find_value

Function find_value 

Source
pub async fn find_value(
    endpoint: &Endpoint,
    target: EndpointAddr,
    hash: ContentHash,
    requester: NodeId,
) -> Result<FindValueResponse>
Expand description

Send a single FindValue request to target and return the response.

Used by the requester-side iterative lookup (crate::dht::lookup). Exposed here so the same connect/encode/decode plumbing isn’t duplicated across the bootstrap / republish / lookup call sites.