inotify has been replaced by pool

This commit is contained in:
Shiroyasha 2024-11-15 23:57:54 +03:00
parent 2f8ab4cfa8
commit b4d70b1b6c
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ pub async fn update_advanced_users(
) {
let (tx, mut rx) = tokio::sync::mpsc::channel::<notify::Result<Event>>(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::<notify::Result<Event>>(1);
let mut watcher = notify::RecommendedWatcher::new(
let mut watcher = notify::PollWatcher::new(
move |res| {
tx.blocking_send(res).unwrap();
},