You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @wenweihu86 , I think there is an issue with the condition here. It should be raftNode.getLeaderId() != 0, because the default value of the leaderId field in RaftNode is 0, and throughout the entire project, the leaderId field has never been set to -1.
Hi, @wenweihu86 , I think there is an issue with the condition here. It should be
raftNode.getLeaderId() != 0
, because the default value of the leaderId field in RaftNode is 0, and throughout the entire project, the leaderId field has never been set to -1.raft-java/raft-java-example/src/main/java/com/github/wenweihu86/raft/example/server/service/impl/ExampleServiceImpl.java
Line 40 in 50761c6
Only the leaderId field in the ExampleServiceImpl class has a default value of -1.
raft-java/raft-java-example/src/main/java/com/github/wenweihu86/raft/example/server/service/impl/ExampleServiceImpl.java
Line 30 in 50761c6
The text was updated successfully, but these errors were encountered: