From b4d70b1b6ccbbe8449443c51680c960156ac6cd5 Mon Sep 17 00:00:00 2001 From: shiroyashik Date: Fri, 15 Nov 2024 23:57:54 +0300 Subject: [PATCH] inotify has been replaced by pool --- Cargo.lock | 4 ++-- src/utils/auxiliary.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fc2d32e..4e03eb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,9 +109,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "axum" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "504e3947307ac8326a5437504c517c4b56716c9d98fac0028c2acc7ca47d70ae" +checksum = "49c41b948da08fb481a94546cd874843adc1142278b0af4badf9b1b78599d68d" dependencies = [ "async-trait", "axum-core", diff --git a/src/utils/auxiliary.rs b/src/utils/auxiliary.rs index 2469ca3..e04489c 100644 --- a/src/utils/auxiliary.rs +++ b/src/utils/auxiliary.rs @@ -28,7 +28,7 @@ pub async fn update_advanced_users( ) { let (tx, mut rx) = tokio::sync::mpsc::channel::>(1); tx.send(Ok(notify::Event::default())).await.unwrap(); - let mut watcher = notify::RecommendedWatcher::new( + let mut watcher = notify::PollWatcher::new( move |res| { tx.blocking_send(res).unwrap(); }, @@ -97,7 +97,7 @@ pub async fn update_bans_from_minecraft( } let (tx, mut rx) = tokio::sync::mpsc::channel::>(1); - let mut watcher = notify::RecommendedWatcher::new( + let mut watcher = notify::PollWatcher::new( move |res| { tx.blocking_send(res).unwrap(); },