Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix ci..
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jun 8, 2020
1 parent dfe4293 commit 7cc1da8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions runtime/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ impl<'a, T: 'a + Clone> AccountsIndex<T> {
pub fn reset_uncleaned_roots(&mut self) -> Vec<Slot> {
let empty = HashSet::new();
let new_previous = std::mem::replace(&mut self.uncleaned_roots, empty);
dbg!("{:?}", &new_previous);
std::mem::replace(&mut self.previous_uncleaned_roots, new_previous)
.into_iter()
.collect()
Expand Down Expand Up @@ -385,13 +384,11 @@ mod tests {
index.clean_dead_slot(1);
assert_eq!(3, index.roots.len());
assert_eq!(2, index.uncleaned_roots.len());
//eprintln!("{:?}", &index.previous_uncleaned_roots);
assert_eq!(1, index.previous_uncleaned_roots.len());

index.clean_dead_slot(2);
assert_eq!(2, index.roots.len());
assert_eq!(1, index.uncleaned_roots.len());
//eprintln!("{:?}", &index.previous_uncleaned_roots);
assert_eq!(1, index.previous_uncleaned_roots.len());
}

Expand Down

0 comments on commit 7cc1da8

Please sign in to comment.