Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <[email protected]>
  • Loading branch information
Little-Wallace committed Jan 29, 2023
1 parent 510776c commit b94fa05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
21 changes: 6 additions & 15 deletions src/storage/src/hummock/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,15 @@ pub fn validate_table_key_range(version: &LocalHummockVersion) {
.unwrap()
.sub_levels
.iter()
.for_each(|level| {
for t in &level.table_infos {
assert!(
t.key_range.is_some(),
"key_range in table [{}] is none",
t.id
);
}
});
group.raw_group_meta.levels.iter().for_each(|level| {
for t in &level.table_infos {
.chain(group.raw_group_meta.levels.iter())
.flat_map(|level| level.table_infos.iter())
.for_each(|sst| {
assert!(
t.key_range.is_some(),
sst.key_range.is_some(),
"key_range in table [{}] is none",
t.id
sst.id
);
}
});
});
});
}

Expand Down
1 change: 0 additions & 1 deletion src/storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#![feature(provide_any)]
#![feature(let_chains)]
#![feature(associated_type_bounds)]
#![feature(map_many_mut)]

pub mod hummock;
pub mod memory;
Expand Down

0 comments on commit b94fa05

Please sign in to comment.