Skip to content

Commit

Permalink
Try to remove lock on team obj
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Mar 27, 2024
1 parent 4ed41a4 commit d6e2332
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 @@ -143,7 +143,7 @@ fn notify_team_change(team: &State<Arc<RwLock<Team>>>, token: String) -> Json<St

match Team::fetch() {
Ok(t) => {
let current_team = team.read();
// let current_team = team.read();

// for current_member in (*current_team.current).iter() {
// if let Some(other_member) = t.current.iter().find(|m| m.name == current_member.name)
Expand Down

0 comments on commit d6e2332

Please sign in to comment.