diff --git a/src/app/config.rs b/src/app/config.rs index 47e154f..5fd2250 100644 --- a/src/app/config.rs +++ b/src/app/config.rs @@ -1,6 +1,6 @@ use std::{ path::{Path, PathBuf}, - sync::Arc, + sync::{mpsc::channel, Arc}, time::Duration, }; @@ -71,7 +71,7 @@ impl From for storage::Config { #[derive(Clone)] pub struct Manager { config_file_path: PathBuf, - config: Arc>, + config: Arc>, auth_secret: auth::Secret, #[allow(dead_code)] file_watcher: Arc>, @@ -81,7 +81,7 @@ impl Manager { pub async fn new(config_file_path: &Path, auth_secret: auth::Secret) -> Result { tokio::fs::File::create_new(config_file_path).await.ok(); - let (sender, receiver) = std::sync::mpsc::channel::(); + let (sender, receiver) = channel::(); let mut debouncer = notify_debouncer_full::new_debouncer(Duration::from_secs(1), None, sender)?;