Skip to content

Commit 2d1712c

Browse files
committed
Remove unused total_count
1 parent 8c5d3dd commit 2d1712c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/crawler.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ struct CrawlResult {
3636

3737
#[derive(Clone)]
3838
struct ProgressTracking {
39-
total_count: Arc<AtomicUsize>,
4039
found_count: Arc<AtomicUsize>,
4140
failed_count: Arc<AtomicUsize>,
4241
non_matching_count: Arc<AtomicUsize>,
@@ -106,7 +105,6 @@ fn setup_crawl_config(max_concurrent: usize, max_retries: usize, timeout: u64) -
106105
}
107106

108107
fn setup_progress_tracking(total_lines: usize) -> ProgressTracking {
109-
let total_count = Arc::new(AtomicUsize::new(total_lines));
110108
let found_count = Arc::new(AtomicUsize::new(0));
111109
let failed_count = Arc::new(AtomicUsize::new(0));
112110
let non_matching_count = Arc::new(AtomicUsize::new(0));
@@ -121,7 +119,6 @@ fn setup_progress_tracking(total_lines: usize) -> ProgressTracking {
121119
progress_bar.set_message("Processing URLs - Found: 0, Failed: 0, Non-matching: 0");
122120

123121
ProgressTracking {
124-
total_count,
125122
found_count,
126123
failed_count,
127124
non_matching_count,

0 commit comments

Comments
 (0)