Async file read

This commit is contained in:
xmppftw xmppftw 2024-08-07 11:48:55 +02:00 committed by Maxime “pep” Buquet
commit 6285c0b1a4
3 changed files with 7 additions and 8 deletions

View file

@ -50,7 +50,7 @@ async fn main() -> Result<!, Error> {
)
.get_matches();
let config = Config::from_arg(matches.get_one::<Utf8PathBuf>("config"))?;
let config = Config::from_arg(matches.get_one::<Utf8PathBuf>("config")).await?;
let (value_tx, mut value_rx) = mpsc::unbounded_channel::<Hook>();