Skip to content

Commit

Permalink
Print processed info only if actually processed
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Aug 7, 2024
1 parent 53331c1 commit b776cd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/src/index/revindex/disk_revindex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ impl RevIndex {
};

index.collection.par_iter().for_each(|(dataset_id, _)| {
let i = processed_sigs.fetch_add(1, Ordering::SeqCst);
if i % 1000 == 0 {
info!("Processed {} reference sigs", i);
}

// check if this dataset_id was processed already
// call map_hashes_colors only if not already processed
if !processed.read().unwrap().contains(&dataset_id) {
let i = processed_sigs.fetch_add(1, Ordering::SeqCst);
if i % 1000 == 0 {
info!("Processed {} reference sigs", i);
}

index.map_hashes_colors(dataset_id as Idx);

// if cached in a new field in the RevIndex,
Expand Down

0 comments on commit b776cd7

Please sign in to comment.