mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 04:51:13 +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
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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