Skip to content

Commit

Permalink
Removing logging code.
Browse files Browse the repository at this point in the history
When I was reviewing this earlier, I mistook these lines as belonging to
a unit test.
  • Loading branch information
ecton committed Mar 1, 2022
1 parent d691646 commit 6459730
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions nebari/src/transaction/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,6 @@ impl IdSequence {
}

pub fn note(&mut self, id: u64) {
println!(
"Noting {} in {}..={}",
id,
self.start,
self.start + self.length
);
self.length = ((id + 1).checked_sub(self.start).unwrap()).max(self.length);
let offset = usize::try_from(id.checked_sub(self.start).unwrap()).unwrap();
let index = offset / (usize::BITS as usize);
Expand All @@ -548,17 +542,7 @@ impl IdSequence {
let bit_offset = offset as usize % (usize::BITS as usize);
self.statuses[index] |= 1 << bit_offset;

println!(
"Before truncate: {}..={}",
self.start,
self.start + self.length
);
self.truncate();
println!(
"After truncate: {}..={}",
self.start,
self.start + self.length
);
}

pub const fn complete(&self) -> bool {
Expand Down

0 comments on commit 6459730

Please sign in to comment.