Skip to content

Commit

Permalink
api: fix a build error
Browse files Browse the repository at this point in the history
Fix a builder error caused by missing of `warn!`.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
  • Loading branch information
jiangliu committed Mar 8, 2023
1 parent 1344b9c commit f82803d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ impl BlobCacheEntry {
if self.blob_type != BLOB_CACHE_TYPE_META_BLOB
&& self.blob_type != BLOB_CACHE_TYPE_DATA_BLOB
{
warn!("invalid blob type {} for blob cache entry", self.blob_type);
log::warn!("invalid blob type {} for blob cache entry", self.blob_type);
return false;
}
if let Some(config) = self.blob_config.as_ref() {
Expand Down
1 change: 1 addition & 0 deletions rafs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ use std::sync::Arc;

use crate::metadata::{RafsInodeExt, RafsSuper};

#[cfg(feature = "builder")]
pub mod builder;
pub mod fs;
pub mod metadata;
Expand Down
2 changes: 1 addition & 1 deletion service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ time = { version = "0.3.14", features = ["serde-human-readable"] }
tokio = { version = "1.24", features = ["macros"] }
tokio-uring = "0.4"

nydus-api = { version = "0.2.2", path = "../api", features = ["handler"] }
nydus-api = { version = "0.2.2", path = "../api"}
nydus-error = { version = "0.2.3", path = "../error" }
nydus-rafs = { version = "0.2.2", path = "../rafs" }
nydus-storage = { version = "0.6.2", path = "../storage" }
Expand Down

0 comments on commit f82803d

Please sign in to comment.