Make constructors error less

This commit is contained in:
Joscha 2022-03-03 00:33:02 +01:00
parent f08c251bd1
commit 9451920c52
3 changed files with 4 additions and 4 deletions

View file

@ -346,7 +346,7 @@ impl Server {
async fn handle_conn(&self, stream: TcpStream) -> anyhow::Result<()> {
let stream = MaybeTlsStream::Plain(stream);
let stream = tokio_tungstenite::accept_async(stream).await?;
let (tx, rx, maintenance) = conn::new(stream, Duration::from_secs(10))?;
let (tx, rx, maintenance) = conn::new(stream, Duration::from_secs(10));
tokio::try_join!(self.greet_and_run(tx, rx), Self::maintain(maintenance))?;
Ok(())
}