Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuz10 authored Dec 14, 2024
1 parent 9d791bc commit 951489b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void changeRoleToFollower(long term, String leaderId) {
handleRoleChange(term, MemberState.Role.FOLLOWER);
}

public CompletableFuture<VoteResponse> handleVote(VoteRequest request, boolean self) {
public CompletableFuture<VoteResponse> handleVote(VoteRequest request, boolean self) {
//hold the lock to get the latest term, leaderId, ledgerEndIndex
synchronized (memberState) {
if (!memberState.isPeerMember(request.getLeaderId())) {
Expand Down

0 comments on commit 951489b

Please sign in to comment.