/// Increase the counter and get the updated counter value.
Increase the counter and get the updated counter value.
Increase the counter and get the updated counter value .
pub fn increase(&self) -> u64 {
        let ret = self.counter.fetch_add(1, Ordering::Relaxed) + 1;
        let _lock = self.write_file_lock.lock().unwrap();
        if let Err(e) = std::fs::write(&self.path, ret.to_string()) {
            log::warn!("Failed to write counter into file: {}", e);
        }
        ret
    }
pub fn increase ( & self ) -> u64 { let ret = self . counter . fetch_add ( 1 , Ordering :: Relaxed ) + 1 ; let _lock = self . write_file_lock . lock ( ) . unwrap ( ) ; if let Err ( e ) = std :: fs :: write ( & self . path , ret . to_string ( ) ) { log :: warn ! ( " " e ) ; } ret }
Increase the counter and get the updated counter value.
Increase the counter and get the updated counter value .
&self