pub(crate) async fn fetch(
base: &str,
http: &Client,
token: &str,
agent_id: &str,
req: &mut InjectionRequest,
files: Vec<CloudFile>,
wan_msg_id: Option<&str>,
) -> Result<(), String>Expand description
On the receiving side, after the claim: check a cloud manifest, then
fetch, decrypt and store each file, setting req.files for
jekt_files::prepare to list. Err when the relay couldn’t be reached,
so the caller releases the claim for a retry; a file that is gone,
tampered with or undecryptable is left out and listed as missing.