fix: use unbounded_channel

This commit is contained in:
Yujia Qiao 2022-02-20 15:25:40 +08:00
parent fcfb0bc701
commit 55aedfc29a
No known key found for this signature in database
GPG Key ID: DC129173B148701B
1 changed files with 1 additions and 1 deletions

View File

@ -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 {