mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
Add thiserror and improve console output formatting
- Added `thiserror` dependency in `Cargo.toml` and `Cargo.lock` for enhanced error handling. - Improved execution time tracking and output formatting in `main.rs`. - Refactored console output in `scan.rs` for better readability with grouped warnings. - Simplified error handling in `scan_filesystem`.
This commit is contained in:
parent
952e83453a
commit
487ccbba8b
5 changed files with 46 additions and 26 deletions
|
|
@ -72,13 +72,13 @@ pub fn spawn_senders(
|
|||
.threads(worker_thrs)
|
||||
.overrides(overrides)
|
||||
.build_parallel();
|
||||
|
||||
|
||||
walker.run(move || {
|
||||
let mut batcher = Batcher {
|
||||
tx: tx.clone(),
|
||||
batch: Vec::with_capacity(BATCH_SIZE),
|
||||
};
|
||||
|
||||
|
||||
Box::new(move |entry| {
|
||||
tracing::debug!("walking: {:?}", entry);
|
||||
let e = match entry {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue