Skip to content

Commit

Permalink
Remove an unnecessary TODO (#70)
Browse files Browse the repository at this point in the history
* Remove unnecessary lock in candidate

* Revert "Remove unnecessary lock in candidate"

This reverts commit ec97bb6.

* Remove unnecessary TODO
  • Loading branch information
komamitsu authored Aug 15, 2023
1 parent aa0432a commit e8eecec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/candidate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ let run ~conf ~apply_log ~state () =
in
(* Send RequestVote RPCs to all other servers *)
let vote_request =
(* TODO: Is this lock needed? *)
Lwt_mutex.with_lock t.lock (fun () -> request_vote t ~election_timer)
in
let received_votes = collect_votes t ~election_timer ~vote_request in
Expand Down

0 comments on commit e8eecec

Please sign in to comment.