mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
inotify has been replaced by pool
This commit is contained in:
parent
2f8ab4cfa8
commit
b4d70b1b6c
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue