pub(crate) fn add_request(&mut self, index: u64, m: Message) {
        let s = m.get_entries()[0].get_Data().to_vec();
        let read_index_status = ReadIndexStatus {
            req: m,
            index,
            acks: Default::default(),
        };
        self.pending_read_index
            .entry(s.clone())
            .or_insert(read_index_status);
        self.read_index_queue.push(s);
    }
// add_request adds a record only request into readonly struct.
// `index` is the commit index of the raft state machine when it received
// the read only request.
// `m` is the original read only request message from the local or remote node.
add_request adds a record only request into readonly struct.
`index` is the commit index of the raft state machine when it received
the read only request.
`m` is the original read only request message from the local or remote node.
add_request adds a record only request into readonly struct . ` index ` is the commit index of the raft state machine when it received the read only request . ` m ` is the original read only request message from the local or remote node .
pub(crate) fn add_request(&mut self, index: u64, m: Message) {
        let s = m.get_entries()[0].get_Data().to_vec();
        let read_index_status = ReadIndexStatus {
            req: m,
            index,
            acks: Default::default(),
        };
        self.pending_read_index
            .entry(s.clone())
            .or_insert(read_index_status);
        self.read_index_queue.push(s);
    }
pub ( crate ) fn add_request ( & mut self , index : u64 , m : Message ) { let s = m . get_entries ( ) [ 0 ] . get_Data ( ) . to_vec ( ) ; let read_index_status = ReadIndexStatus { req : m , index , acks : Default :: default ( ) , } ; self . pending_read_index . entry ( s . clone ( ) ) . or_insert ( read_index_status ) ; self . read_index_queue . push ( s ) ; }
add_request adds a record only request into readonly struct.
add_request adds a record only request into readonly struct .
&mut self
index
u64
m
Message