mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 22:03:30 +03:00
reorganize watcher modules for more consistency
This commit is contained in:
parent
80b9598d5a
commit
86edb4627d
@ -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.
|
||||
///
|
@ -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;
|
||||
|
@ -19,8 +19,6 @@ use tokio::{
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
mod debouncer;
|
||||
mod debouncer_cache;
|
||||
mod debouncer_event;
|
||||
mod file_monitor;
|
||||
mod handler;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user