pub(crate) fn become_follower(&mut self, term: u64, lead: u64) {
        // self.step = Some(Box::new(Self::step_follower));
        self.reset(term);
        // self.tick = Some(Box::new(tick_election));
        self.lead = lead;
        self.state = StateType::Follower;
        info!("{:#x} became follower at term {}", self.id, self.term);
    }
// become_follower transform this peer's state to follower
become_follower transform this peer's state to follower
become_follower transform this peer ' s state to follower
pub(crate) fn become_follower(&mut self, term: u64, lead: u64) {
        // self.step = Some(Box::new(Self::step_follower));
        self.reset(term);
        // self.tick = Some(Box::new(tick_election));
        self.lead = lead;
        self.state = StateType::Follower;
        info!("{:#x} became follower at term {}", self.id, self.term);
    }
pub ( crate ) fn become_follower ( & mut self , term : u64 , lead : u64 ) { // self.step = Some(Box::new(Self::step_follower)); self . reset ( term ) ; // self.tick = Some(Box::new(tick_election)); self . lead = lead ; self . state = StateType :: Follower ; info ! ( " " self id self term ) ; }
become_follower transform this peer's state to follower
become_follower transform this peer ' s state to follower
&mut self
term
u64
lead
u64