We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48fe503 + 36fac17 commit a22f93bCopy full SHA for a22f93b
1 file changed
src/main/java/Consensus/LeaderElection.java
@@ -137,6 +137,7 @@ public static void sendElectedMessage(Collection<String> repliedIds) {
137
}
138
139
public static void respondToElectedMessage() {
140
+ ServerState.getServerState().setCurrentLeader(new Leader(ServerState.getServerState().getServerFromId(getThisServerId())));
141
announceToTheWorld();
142
143
0 commit comments