Explorar o código

fix: use unbounded_channel

Yujia Qiao %!s(int64=4) %!d(string=hai) anos
pai
achega
55aedfc29a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>,
     mut old: Config,
 ) -> Result<()> {
-    let (fevent_tx, mut fevent_rx) = mpsc::channel(16);
+    let (fevent_tx, mut fevent_rx) = mpsc::unbounded_channel();
 
     let mut watcher =
         notify::recommended_watcher(move |res: Result<notify::Event, _>| match res {