// set currentTerm = T, convert to follower (ยง5.1)
// This applies to all RPC messages and responses
if (rpc.getTerm() > context.getTermInformation().getCurrentTerm()) {
- context.getTermInformation().update(rpc.getTerm(), null);
+ context.getTermInformation().updateAndPersist(rpc.getTerm(), null);
return RaftState.Follower;
}
}