diff --git a/examples/client.rs b/examples/client.rs index ee5095a..b18ad9b 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -96,8 +96,6 @@ async fn fetch_container_to_devnull(o: GetMetadataOpts) -> Result<()> { let mut devnull = tokio::io::sink(); let copier = tokio::io::copy(&mut blob, &mut devnull); let (copier, driver) = tokio::join!(copier, driver); - dbg!(&copier); - dbg!(&driver); copier?; driver?; } diff --git a/src/imageproxy.rs b/src/imageproxy.rs index fb61948..bd6b2f6 100644 --- a/src/imageproxy.rs +++ b/src/imageproxy.rs @@ -545,6 +545,11 @@ impl ImageProxy { /// /// /// The requested size and digest are verified (by the proxy process). + /// + /// Note that because of the implementation details of this function, you should + /// [`futures::join!`] the returned futures instead of polling one after the other. The + /// secondary "driver" future will only return once everything has been read from + /// the reader future. #[instrument] pub async fn get_blob( &self,