// Return all blobs that make up `package`, including the meta.far.
Return all blobs that make up `package`, including the meta.far.
Return all blobs that make up ` package ` including the meta . far .
async fn package_blobs(
        blobfs: &blobfs::Client,
        package: Hash,
    ) -> Result<impl Iterator<Item = Hash>, Error> {
        let package_dir = package_directory::RootDir::new(blobfs.clone(), package)
            .await
            .with_context(|| format!("making RootDir for {}", package))?;
        let external_hashes = package_dir.external_file_hashes().copied().collect::<Vec<_>>();
        Ok(std::iter::once(package.clone()).chain(external_hashes))
    }
async fn package_blobs ( blobfs : & blobfs :: Client , package : Hash , ) -> Result < impl Iterator < Item = Hash > , Error > { let package_dir = package_directory :: RootDir :: new ( blobfs . clone ( ) , package ) . await . with_context ( | | format ! ( " " package ) ) ? ; let external_hashes = package_dir . external_file_hashes ( ) . copied ( ) . collect :: < Vec < _ > > ( ) ; Ok ( std :: iter :: once ( package . clone ( ) ) . chain ( external_hashes ) ) }
Return all blobs that make up `package`, including the meta.far.
Return all blobs that make up ` package ` including the meta . far .
blobfs
&blobfs::Client
package
Hash