Skip to content

Commit

Permalink
image-rs: fix missing bracket and imports
Browse files Browse the repository at this point in the history
Signed-off-by: Silenio Quarti <silenio_quarti@ca.ibm.com>
  • Loading branch information
squarti committed Feb 19, 2025
1 parent 987e61a commit 091d191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions image-rs/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

use anyhow::{bail, Context, Result};
use log::error;
use log::info;
use oci_client::manifest::{OciDescriptor, OciImageManifest};
use oci_client::secrets::RegistryAuth;
Expand Down Expand Up @@ -148,9 +149,9 @@ impl ImageClient {
.unwrap_or_else(|_| ImageConfig::new(work_dir.clone()));
let meta_store = MetaStore::try_from(work_dir.join(METAFILE).as_path()).unwrap_or_default();
let layer_store = LayerStore::new(work_dir).unwrap_or_else(|e| {
error!("failed to construct layer store", e);
error!("failed to construct layer store: {e:?}");
LayerStore::default()
};
});
let snapshots = Self::init_snapshots(&config.work_dir, &meta_store);

Self {
Expand Down
1 change: 1 addition & 0 deletions image-rs/src/layer_store.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use anyhow::anyhow;
use std::fs;
use std::path::PathBuf;
use std::sync::atomic::{AtomicUsize, Ordering};
Expand Down

0 comments on commit 091d191

Please sign in to comment.