fn committed_entry_in_current_term(&self) -> bool {
        self.raft_log.term(self.raft_log.committed).map_or_else(
            |err| {
                if err == RaftLogError::FromStorage(StorageError::Compacted) {
                    0
                } else {
                    panic!("unexpected error {}", err)
                }
            },
            |term| term,
        ) == self.term
    }
// returns the if the peer has committed an entry in its term.
returns the if the peer has committed an entry in its term.
returns the if the peer has committed an entry in its term .
fn committed_entry_in_current_term(&self) -> bool {
        self.raft_log.term(self.raft_log.committed).map_or_else(
            |err| {
                if err == RaftLogError::FromStorage(StorageError::Compacted) {
                    0
                } else {
                    panic!("unexpected error {}", err)
                }
            },
            |term| term,
        ) == self.term
    }
fn committed_entry_in_current_term ( & self ) -> bool { self . raft_log . term ( self . raft_log . committed ) . map_or_else ( | err | { if err == RaftLogError :: FromStorage ( StorageError :: Compacted ) { 0 } else { panic ! ( " " err ) } } , | term | term , ) == self . term }
returns the if the peer has committed an entry in its term.
returns the if the peer has committed an entry in its term .
&self