Skip to content

Commit

Permalink
chore: bump notify & notify-debouncer-full
Browse files Browse the repository at this point in the history
  • Loading branch information
lomirus committed Nov 4, 2024
1 parent 4ee01a7 commit c974e62
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 57 deletions.
85 changes: 35 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ keywords = ["live", "server", "web", "reload"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
notify = "6.1.1"
notify = "7.0.0"
clap = { version = "4.5.20", features = ["derive"] }
local-ip-address = "0.6.2"
log = "0.4.22"
env_logger = "0.10.2"
notify-debouncer-full = "0.3.2"
notify-debouncer-full = "0.4.0"
tokio = { version = "1.41.0", features = ["full"] }
axum = { version = "0.7.6", features = ["ws"]}
futures = "0.3.31"
Expand Down
6 changes: 1 addition & 5 deletions src/file_layer/watcher.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{path::PathBuf, sync::Arc, time::Duration};

use notify::{Error, RecommendedWatcher, RecursiveMode, Watcher};
use notify::{Error, RecommendedWatcher, RecursiveMode};
use notify_debouncer_full::{
new_debouncer, DebounceEventResult, DebouncedEvent, Debouncer, FileIdMap,
};
Expand Down Expand Up @@ -66,12 +66,8 @@ pub async fn watch(
tx: Arc<broadcast::Sender<()>>,
) {
debouncer
.watcher()
.watch(&root_path, RecursiveMode::Recursive)
.unwrap();
debouncer
.cache()
.add_root(&root_path, RecursiveMode::Recursive);

while let Some(result) = rx.recv().await {
let mut files_changed = false;
Expand Down

0 comments on commit c974e62

Please sign in to comment.