Skip to content

Commit

Permalink
Fix debouncer on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
DervexDev committed May 2, 2024
1 parent 147c822 commit 0827f3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vfs/debouncer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ use notify::event::DataChange;
#[cfg(not(target_os = "windows"))]
use notify::event::ModifyKind;

use crate::constants::SYNCBACK_DEBOUNCE_TIME;

#[cfg(target_os = "linux")]
use {
notify::event::{AccessKind, AccessMode, RenameMode},
std::{path::PathBuf, time::Instant},
std::path::PathBuf,
};

use super::VfsEvent;
use crate::constants::SYNCBACK_DEBOUNCE_TIME;

#[cfg(target_os = "linux")]
const DEBOUNCE_TIME: Duration = Duration::from_micros(500);
Expand Down

0 comments on commit 0827f3e

Please sign in to comment.