fn copy_to_blobservice<F>(
tokio_handle: Handle,
blob_service: impl BlobService,
r: impl Read,
inspect_f: F,
) -> Result<(B3Digest, u64)>
Expand description
Helper function dealing with uploading something from a std::io::Read to the passed BlobService, returning the B3Digest and size. This function is sync (and uses the tokio handle to block). A sync closure getting a copy of all bytes read can be passed in, allowing to do other hashing where needed.