pub(crate) fn recv_ack(&mut self, id: u64, context: Vec<u8>) -> Option<&HashMap<u64, bool>> {
        if let Some(mut entry) = self.pending_read_index.get_mut(&context) {
            entry.acks.insert(id, true);
            return Some(&entry.acks);
        }
        None
    }
// recv_ack notifies the read_only struct that the raft state machine received
// an acknowledgment of the heartbeat that attached with the read only request
// context.
recv_ack notifies the read_only struct that the raft state machine received
an acknowledgment of the heartbeat that attached with the read only request
context.
recv_ack notifies the read_only struct that the raft state machine received an acknowledgment of the heartbeat that attached with the read only request context .
pub(crate) fn recv_ack(&mut self, id: u64, context: Vec<u8>) -> Option<&HashMap<u64, bool>> {
        if let Some(mut entry) = self.pending_read_index.get_mut(&context) {
            entry.acks.insert(id, true);
            return Some(&entry.acks);
        }
        None
    }
pub ( crate ) fn recv_ack ( & mut self , id : u64 , context : Vec < u8 > ) -> Option < & HashMap < u64 , bool > > { if let Some ( mut entry ) = self . pending_read_index . get_mut ( & context ) { entry . acks . insert ( id , true ) ; return Some ( & entry . acks ) ; } None }
recv_ack notifies the read_only struct that the raft state machine received
an acknowledgment of the heartbeat that attached with the read only request
context.
recv_ack notifies the read_only struct that the raft state machine received an acknowledgment of the heartbeat that attached with the read only request context .
&mut self
id
u64
context
Vec<u8>