don't unconstrain the ws

This commit is contained in:
Toshit Chawda 2024-01-06 12:06:54 -08:00
parent 0fa2492a56
commit 87a633d37a
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -41,7 +41,7 @@ async fn accept_http(mut req: Request<Incoming>, addr: String) -> Result<Respons
let (res, fut) = upgrade::upgrade(&mut req)?;
tokio::spawn(async move {
if let Err(e) = tokio::task::unconstrained(accept_ws(fut, uri.path().to_string(), addr.clone())).await
if let Err(e) = accept_ws(fut, uri.path().to_string(), addr.clone()).await
{
println!("{:?}: error in ws: {:?}", addr, e);
}