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)
| 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 | } |
nothing calls this directly
no test coverage detected