pub fn grow(&mut self) {
        let mut new_size = self.buffer.len() * 2;
        if new_size == 0 {
            new_size = 1;
        } else if new_size > self.size {
            new_size = self.size;
        }
        let mut new_buffer = Vec::with_capacity(new_size);
        new_buffer.extend_from_slice(&self.buffer);
        self.buffer = new_buffer;
    }
/// The inflight buffer by doubling up tp `inflights.size`. We grow on demand
/// instead of preallocating to `inflights.size` to handle system which have
/// thousands of Raft groups per process.
The inflight buffer by doubling up tp `inflights.size`. We grow on demand
instead of preallocating to `inflights.size` to handle system which have
thousands of Raft groups per process.
The inflight buffer by doubling up tp ` inflights . size ` . We grow on demand instead of preallocating to ` inflights . size ` to handle system which have thousands of Raft groups per process .
pub fn grow(&mut self) {
        let mut new_size = self.buffer.len() * 2;
        if new_size == 0 {
            new_size = 1;
        } else if new_size > self.size {
            new_size = self.size;
        }
        let mut new_buffer = Vec::with_capacity(new_size);
        new_buffer.extend_from_slice(&self.buffer);
        self.buffer = new_buffer;
    }
pub fn grow ( & mut self ) { let mut new_size = self . buffer . len ( ) * 2 ; if new_size == 0 { new_size = 1 ; } else if new_size > self . size { new_size = self . size ; } let mut new_buffer = Vec :: with_capacity ( new_size ) ; new_buffer . extend_from_slice ( & self . buffer ) ; self . buffer = new_buffer ; }
The inflight buffer by doubling up tp `inflights.size`.
The inflight buffer by doubling up tp ` inflights . size ` .
&mut self