diff options
Diffstat (limited to 'src/bin/git-autosave-daemon.rs')
| -rw-r--r-- | src/bin/git-autosave-daemon.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/git-autosave-daemon.rs b/src/bin/git-autosave-daemon.rs index 39df4b8..2c27ab2 100644 --- a/src/bin/git-autosave-daemon.rs +++ b/src/bin/git-autosave-daemon.rs @@ -44,7 +44,7 @@ impl<Cache: FileIdCache + Send + 'static> DebounceEventHandler for ConfigWatcher log::error!("Failed to acquire thread key when reloading config. This is a bug!"); return; }; - let config = match git_autosave::load_config() { + let config = match Config::load() { Ok(config) => config, Err(e) => { log::error!("Failed to reload autosave config: {e}"); @@ -172,8 +172,7 @@ fn main() -> Result<(), anyhow::Error> { colog::init(); log::info!("Loading autosave config..."); - let config: &'static Mutex<Config> = - Box::leak(Box::new(Mutex::new(git_autosave::load_config()?))); + let config: &'static Mutex<Config> = Box::leak(Box::new(Mutex::new(Config::load()?))); log::info!("Loaded autosave config"); log::info!("Starting repository watcher..."); |
