fn check_incoming_term(&mut self, incoming_term: u64) -> bool {
        if incoming_term > self.state.term {
            info!(
                "Server {} with term = {} get larger term, back to follower",
                self.me, self.state.term
            );
            self.state.term = incoming_term;
            self.state.role = Role::Follower;
            self.state.vote_for = None;
            false
        } else {
            true
        }
    }
/// Return true means pass the check: do not back to follower.
/// Return false means fail the check: back to follower
Return true means pass the check: do not back to follower.
Return false means fail the check: back to follower
Return true means pass the check : do not back to follower . Return false means fail the check : back to follower
fn check_incoming_term(&mut self, incoming_term: u64) -> bool {
        if incoming_term > self.state.term {
            info!(
                "Server {} with term = {} get larger term, back to follower",
                self.me, self.state.term
            );
            self.state.term = incoming_term;
            self.state.role = Role::Follower;
            self.state.vote_for = None;
            false
        } else {
            true
        }
    }
fn check_incoming_term ( & mut self , incoming_term : u64 ) -> bool { if incoming_term > self . state . term { info ! ( " " self me self state term ) ; self . state . term = incoming_term ; self . state . role = Role :: Follower ; self . state . vote_for = None ; false } else { true } }
Return true means pass the check: do not back to follower.
Return true means pass the check : do not back to follower .
&mut self
incoming_term
u64
&mut self
incoming_term
u64