Skip to content

Commit

Permalink
Version bump and fixes for notify (6.1) and notify-debouncer-mini (0.…
Browse files Browse the repository at this point in the history
…4) (#6179)
  • Loading branch information
alfiedotwtf committed Sep 23, 2024
1 parent fd53e45 commit b94e521
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 81 deletions.
80 changes: 8 additions & 72 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 @@ -166,8 +166,8 @@ mdbook = { version = "0.4", default-features = false }
miden = "0.3"
miden-core = "0.3"
minifier = "0.3"
notify = "5.0"
notify-debouncer-mini = "0.2"
notify = "6.1"
notify-debouncer-mini = "0.4"
num-bigint = "0.4"
num-traits = "0.2"
object = "0.36"
Expand Down
13 changes: 6 additions & 7 deletions sway-lsp/src/core/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,12 @@ impl SyncWorkspace {
let handle = tokio::spawn(async move {
let (tx, mut rx) = tokio::sync::mpsc::channel(10);
// Setup debouncer. No specific tickrate, max debounce time 2 seconds
let mut debouncer =
new_debouncer(Duration::from_secs(1), None, move |event| {
if let Ok(e) = event {
let _ = tx.blocking_send(e);
}
})
.unwrap();
let mut debouncer = new_debouncer(Duration::from_secs(1), move |event| {
if let Ok(e) = event {
let _ = tx.blocking_send(e);
}
})
.unwrap();

debouncer
.watcher()
Expand Down

0 comments on commit b94e521

Please sign in to comment.