Yujia Qiao 4 лет назад
Родитель
Сommit
55aedfc29a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/config_watcher.rs

+ 1 - 1
src/config_watcher.rs

@@ -138,7 +138,7 @@ async fn config_watcher(
     event_tx: mpsc::UnboundedSender<ConfigChange>,
     event_tx: mpsc::UnboundedSender<ConfigChange>,
     mut old: Config,
     mut old: Config,
 ) -> Result<()> {
 ) -> Result<()> {
-    let (fevent_tx, mut fevent_rx) = mpsc::channel(16);
+    let (fevent_tx, mut fevent_rx) = mpsc::unbounded_channel();
 
 
     let mut watcher =
     let mut watcher =
         notify::recommended_watcher(move |res: Result<notify::Event, _>| match res {
         notify::recommended_watcher(move |res: Result<notify::Event, _>| match res {