MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / resolve

Method resolve

ipld/resolver/src/client.rs:107–113  ·  view source on GitHub ↗

Send a CID for resolution from a specific subnet, await its completion, then return the result, to be inspected by the caller. Upon success, the data should be found in the store.

(&self, cid: Cid, subnet_id: SubnetID)

Source from the content-addressed store, hash-verified

105 ///
106 /// Upon success, the data should be found in the store.
107 async fn resolve(&self, cid: Cid, subnet_id: SubnetID) -> anyhow::Result<ResolveResult> {
108 let (tx, rx) = oneshot::channel();
109 let req = Request::Resolve(cid, subnet_id, tx);
110 self.send_request(req)?;
111 let res = rx.await?;
112 Ok(res)
113 }
114}

Callers

nothing calls this directly

Calls 1

send_requestMethod · 0.80

Tested by

no test coverage detected