Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed May 28, 2024
1 parent b844aef commit 05a8b8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/admin_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ impl AdminWebsocket {

// WebsocketReceiver needs to be polled in order to receive responses
// from remote to sender requests.
let poll_handle = tokio::task::spawn(async move { while rx.recv::<AdminResponse>().await.is_ok() {} });
let poll_handle =
tokio::task::spawn(async move { while rx.recv::<AdminResponse>().await.is_ok() {} });

Ok(Self { tx, poll_handle })
}
Expand Down

0 comments on commit 05a8b8f

Please sign in to comment.