Skip to content

Commit

Permalink
container: Drop unnecessary &mut
Browse files Browse the repository at this point in the history
The proxy uses shared references; prep for some
investigation of parallel unpack.

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Jun 27, 2024
1 parent d6ac3ba commit e66b381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/container/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ impl ImageImporter {
.await?;
}
let (blob, driver) = fetch_layer_decompress(
&mut self.proxy,
&self.proxy,
&self.proxy_img,
&import.manifest,
&layer.layer,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/container/unencapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ fn new_async_decompressor(

/// A wrapper for [`get_blob`] which fetches a layer and decompresses it.
pub(crate) async fn fetch_layer_decompress<'a>(
proxy: &'a mut ImageProxy,
proxy: &'a ImageProxy,
img: &OpenedImage,
manifest: &oci_image::ImageManifest,
layer: &'a oci_image::Descriptor,
Expand Down

0 comments on commit e66b381

Please sign in to comment.