diff --git a/ee/tabby-webserver/src/lib.rs b/ee/tabby-webserver/src/lib.rs index a9acd214dc4c..4fe3ed39a065 100644 --- a/ee/tabby-webserver/src/lib.rs +++ b/ee/tabby-webserver/src/lib.rs @@ -47,7 +47,7 @@ pub async fn attach_webserver( routing::post(graphql::>).with_state(ctx.clone()), ) .layer(Extension(schema)) - .route("/hub", routing::get(ws_handler).with_state(ctx.clone())); + .route("/hub", routing::get(ws_handler).with_state(ctx)); let ui = ui .route("/graphql", routing::get(playground("/graphql", None)))