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