|
|
|
@ -28,15 +28,11 @@ use futures::{
|
|
|
|
|
async fn process_single(state: Arc<state::State>, path: impl AsRef<Path>) -> eyre::Result<()>
|
|
|
|
|
{
|
|
|
|
|
let path = path.as_ref();
|
|
|
|
|
#[cfg(debug_assertions)] {
|
|
|
|
|
if !path.is_file() {
|
|
|
|
|
panic!("process_single() expected a file, but {:?} is not one.", path);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
debug_assert!(!path.is_file(), "process_single() expected a file, but {:?} is not one.", path);
|
|
|
|
|
|
|
|
|
|
let _g = state.lock().await;
|
|
|
|
|
debug!("{:?} Processing", path);
|
|
|
|
|
//TODO: Actual processing
|
|
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|