Skip to content

Commit

Permalink
Fix report
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed Mar 20, 2024
1 parent e2b0ac3 commit 1c4afc9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- changed
- Fix removing ignored urls
- Fix removed bookmarks in dry run
- Fix processing report for underlyings
- Update dependencies
- removed

Expand Down
1 change: 1 addition & 0 deletions src/bookmarks/bookmark_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ where

{
let mut report = self.report.lock();
report.reset();
report.set_total(bookmarks.len());
}

Expand Down
9 changes: 9 additions & 0 deletions src/bookmarks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,15 @@ impl ServiceReport {
}
}

pub fn reset(&mut self) {
self.total = 0;
self.processed = 0;
self.cached = 0;
self.failed_response = 0;
self.binary_response = 0;
self.empty_response = 0;
}

pub fn set_total(&mut self, total: usize) {
self.total = total;
}
Expand Down

0 comments on commit 1c4afc9

Please sign in to comment.