Skip to content

Commit f2100c6

Browse files
committed
feat(scanner): show how many servers was saved to the database
1 parent 71c8437 commit f2100c6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/scanning/file_scanner.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,12 @@ pub async fn scan_file(path: String) {
131131
Err(e) => logger::error(
132132
format!("Failed to insert server to database: {}", e.hex(DefaultColor::Highlight.hex()))
133133
).prefix("File Scanner").send().await,
134-
Ok(_) => logger::success("Saved all server to the database!".to_string())
135-
.prefix("File Scanner").send().await
134+
Ok(_) => logger::success(
135+
format!(
136+
"Saved {} servers to the database!",
137+
found_batch.len().hex(DefaultColor::Highlight.hex())
138+
)
139+
).prefix("File Scanner").send().await
136140
}
137141
}
138142

0 commit comments

Comments
 (0)