Skip to content

Commit

Permalink
Merge pull request #6 from toeverything/stable
Browse files Browse the repository at this point in the history
use stable
  • Loading branch information
darkskygit authored Sep 16, 2022
2 parents f78412c + ae1b5c9 commit 3f19031
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions apps/keck/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(async_closure)]

mod server;
mod sync;
mod utils;
Expand Down
2 changes: 1 addition & 1 deletion apps/keck/src/server/collaboration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub async fn upgrade_handler(
ws: WebSocketUpgrade,
) -> Response {
ws.protocols(["AFFiNE"])
.on_upgrade(async move |socket| handle_socket(socket, workspace, context.clone()).await)
.on_upgrade(|socket| async move { handle_socket(socket, workspace, context.clone()).await })
}

async fn handle_socket(socket: WebSocket, workspace: String, context: Arc<Context>) {
Expand Down

0 comments on commit 3f19031

Please sign in to comment.