mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-09 07:38:50 +00:00
Add formatting and linting checks to CI
This commit is contained in:
@@ -16,6 +16,7 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::thread::{self, JoinHandle};
|
||||
use std::time::{Duration, Instant};
|
||||
use tracing::info;
|
||||
|
||||
/// Configuration for the file watcher
|
||||
#[derive(Debug, Clone)]
|
||||
@@ -430,7 +431,7 @@ impl FileWatcher {
|
||||
if let Some(db_mutex) = &*db_guard_option {
|
||||
if let Ok(mut _db_instance_guard) = db_mutex.lock() {
|
||||
for event_item in &evts_to_process {
|
||||
println!(
|
||||
info!(
|
||||
"Processing event (DB available): {:?} for path {:?}",
|
||||
event_item.kind, event_item.path
|
||||
);
|
||||
@@ -440,7 +441,7 @@ impl FileWatcher {
|
||||
}
|
||||
} else {
|
||||
for event_item in &evts_to_process {
|
||||
println!(
|
||||
info!(
|
||||
"Processing event (no DB): {:?} for path {:?}",
|
||||
event_item.kind, event_item.path
|
||||
);
|
||||
@@ -454,7 +455,7 @@ impl FileWatcher {
|
||||
let final_evts = debouncer.flush();
|
||||
events_processed_clone.fetch_add(final_evts.len(), Ordering::SeqCst);
|
||||
for processed_event in final_evts {
|
||||
println!(
|
||||
info!(
|
||||
"Processing final event: {:?} for path {:?}",
|
||||
processed_event.kind, processed_event.path
|
||||
);
|
||||
@@ -710,4 +711,4 @@ mod file_watcher_state_tests {
|
||||
assert!(watcher.stop().is_err());
|
||||
assert!(watcher.status().is_err());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user