Don't spawn the IRC loop

This commit is contained in:
Yash Karandikar 2022-01-24 11:18:00 -06:00
parent c42e10c084
commit 29cdda85b6

View file

@ -436,11 +436,7 @@ async fn main() -> anyhow::Result<()> {
.await
.expect("Invalid webhook URL");
tokio::spawn(async move {
irc_loop(irc_client, http, channel_id, webhook, members)
.await
.unwrap();
});
irc_loop(irc_client, http, channel_id, webhook, members).await?;
discord_client.start().await?;
Ok(())