Skip to content

Commit

Permalink
Removed useless uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Apr 27, 2023
1 parent 6445240 commit 7926da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/handler/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub async fn websocket(
let hb_tx = tx.clone();
let hb_time = last_hb.clone();
let hb_ws_manager = ws_manager_chan.clone();
let hb_uuid = uuid.clone();
let hb_uuid = uuid;
tokio::spawn(async move {
loop {
if Instant::now().duration_since(*hb_time.lock().await) > CLIENT_TIMEOUT
Expand All @@ -84,7 +84,7 @@ pub async fn websocket(

let rx_tx = tx.clone();
let rx_ws_manager = ws_manager_chan.clone();
let rx_uuid = uuid.clone();
let rx_uuid = uuid;
tokio::spawn(async move {
while let Some(res) = rx.recv().await {
match res {
Expand Down

0 comments on commit 7926da3

Please sign in to comment.