Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed Apr 29, 2024
1 parent 744266b commit 72f321b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async fn handle_socket(socket: WebSocket, _who: SocketAddr, state: Arc<AppState>
},
MessageTypes::UserJoin(request) => {
user_recv.lock().unwrap().name = request.user;
user_set_recv.lock().unwrap().push(user_recv.lock().unwrap().name.clone());
user_set_recv.lock().unwrap().insert(user_recv.lock().unwrap().name.clone());
let _ = tx.send(
serde_json::to_string(&(UserJoin { user: user_recv.lock().unwrap().name.clone() })).expect("")
);
Expand Down

0 comments on commit 72f321b

Please sign in to comment.