From 217f57f6a230ba0229b857714399f66c7251181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Thu, 4 Jan 2024 22:13:08 +1300 Subject: [PATCH] Update to async-priority-channel 0.2.0 (#761) --- Cargo.lock | 6 +++--- crates/lib/Cargo.toml | 2 +- crates/lib/src/watchexec.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0f937a0d..60034da2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -230,11 +230,11 @@ dependencies = [ [[package]] name = "async-priority-channel" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c21678992e1b21bebfe2bc53ab5f5f68c106eddab31b24e0bb06e9b715a86640" +checksum = "acde96f444d31031f760c5c43dc786b97d3e1cb2ee49dd06898383fe9a999758" dependencies = [ - "event-listener 2.5.3", + "event-listener 4.0.1", ] [[package]] diff --git a/crates/lib/Cargo.toml b/crates/lib/Cargo.toml index de700bbb..720576e4 100644 --- a/crates/lib/Cargo.toml +++ b/crates/lib/Cargo.toml @@ -16,7 +16,7 @@ rust-version = "1.61.0" edition = "2021" [dependencies] -async-priority-channel = "0.1.0" +async-priority-channel = "0.2.0" async-recursion = "1.0.5" atomic-take = "1.0.0" futures = "0.3.29" diff --git a/crates/lib/src/watchexec.rs b/crates/lib/src/watchexec.rs index 65a0cd29..8ac1188e 100644 --- a/crates/lib/src/watchexec.rs +++ b/crates/lib/src/watchexec.rs @@ -140,7 +140,7 @@ impl Watchexec { let notify = Arc::new(Notify::new()); let start_lock = notify.clone(); - let (ev_s, ev_r) = priority::bounded(config.event_channel_size); + let (ev_s, ev_r) = priority::bounded(config.event_channel_size.try_into().unwrap_or(u64::MAX)); let event_input = ev_s.clone(); trace!("creating main task");