We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7db9a22 commit 0c53689Copy full SHA for 0c53689
1 file changed
turbopack/crates/turbo-persistence/src/meta_file.rs
@@ -441,11 +441,13 @@ impl MetaFile {
441
value_block_cache: &BlockCache,
442
) -> Result<MetaBatchLookupResult> {
443
if key_family != self.family {
444
+ #[cfg(feature = "stats")]
445
return Ok(MetaBatchLookupResult {
- #[cfg(feature = "stats")]
446
family_miss: true,
447
..Default::default()
448
});
449
+ #[cfg(not(feature = "stats"))]
450
+ return Ok(MetaBatchLookupResult {});
451
}
452
#[allow(unused_mut, reason = "It's used when stats are enabled")]
453
let mut lookup_result = MetaBatchLookupResult::default();
0 commit comments