reorganize watcher modules for more consistency

This commit is contained in:
Sebastian Thiel 2024-05-24 13:21:10 +02:00
parent 80b9598d5a
commit 86edb4627d
No known key found for this signature in database
GPG Key ID: 9CB5EE7895E8268B
6 changed files with 6 additions and 7 deletions

View File

@ -108,10 +108,11 @@ use notify::{
};
use parking_lot::Mutex;
use crate::{
debouncer_cache::{FileIdCache, FileIdMap},
debouncer_event::DebouncedEvent,
};
pub(crate) mod cache;
mod event;
use cache::{FileIdCache, FileIdMap};
use event::DebouncedEvent;
/// The set of requirements for watcher debounce event handling functions.
///

View File

@ -2,8 +2,8 @@ use std::collections::HashSet;
use std::path::Path;
use std::time::Duration;
use crate::debouncer::cache::FileIdMap;
use crate::debouncer::Debouncer;
use crate::debouncer_cache::FileIdMap;
use crate::{debouncer::new_debouncer, events::InternalEvent};
use anyhow::{anyhow, Context, Result};
use gitbutler_core::ops::OPLOG_FILE_NAME;

View File

@ -19,8 +19,6 @@ use tokio::{
use tokio_util::sync::CancellationToken;
mod debouncer;
mod debouncer_cache;
mod debouncer_event;
mod file_monitor;
mod handler;