fn roll_to_next_file(&mut self, time: u64) -> Result<()> {
        // pay attention, if the computation name of the next file is failed,
        // the old file won't be closed and metric logs would be append to the old file.
        // And it may also lead to failure when deleting deprecated metric logs, since it also depnds on this .
        let new_filename = self.next_file_name_of_time(time)?;
        self.close_cur_and_new_file(new_filename)
    }
/// Close last file and open a new one.
Close last file and open a new one.
Close last file and open a new one .
fn roll_to_next_file(&mut self, time: u64) -> Result<()> {
        // pay attention, if the computation name of the next file is failed,
        // the old file won't be closed and metric logs would be append to the old file.
        // And it may also lead to failure when deleting deprecated metric logs, since it also depnds on this .
        let new_filename = self.next_file_name_of_time(time)?;
        self.close_cur_and_new_file(new_filename)
    }
fn roll_to_next_file ( & mut self , time : u64 ) -> Result < ( ) > { // pay attention, if the computation name of the next file is failed, // the old file won't be closed and metric logs would be append to the old file. // And it may also lead to failure when deleting deprecated metric logs, since it also depnds on this . let new_filename = self . next_file_name_of_time ( time ) ? ; self . close_cur_and_new_file ( new_filename ) }
Close last file and open a new one.
Close last file and open a new one .
&mut self
time
u64
&mut self
time
u64