move the cancel-on-shutdown handling to the cancel session maintenance task

This commit is contained in:
Conrad Ludgate
2025-06-09 19:08:44 -07:00
parent 744011437a
commit f37a558280
6 changed files with 66 additions and 58 deletions

View File

@@ -167,7 +167,7 @@ pub(crate) async fn serve_websocket(
Ok(Some(p)) => {
ctx.set_success();
ctx.log_connect();
match p.proxy_pass(&config.connect_to_compute).await {
match p.proxy_pass().await {
Ok(()) => Ok(()),
Err(ErrorSource::Client(err)) => Err(err).context("client"),
Err(ErrorSource::Compute(err)) => Err(err).context("compute"),