async fn check_progress(&mut self) {
        if let Some(timestamp) = self.last_sync {
            let delta = SystemTime::now()
                .duration_since(timestamp)
                .expect("system time failure");
            if delta.as_millis() > (2 * u128::from(self.config.tick_interval_ms)) {
                self.last_sync = None;
                self.request_next_chunk(0).await;
            }
        }
    }
/// ensures that StateSynchronizer makes progress
/// if peer is not responding, issues new sync request
ensures that StateSynchronizer makes progress
if peer is not responding, issues new sync request
ensures that StateSynchronizer makes progress if peer is not responding issues new sync request
async fn check_progress(&mut self) {
        if let Some(timestamp) = self.last_sync {
            let delta = SystemTime::now()
                .duration_since(timestamp)
                .expect("system time failure");
            if delta.as_millis() > (2 * u128::from(self.config.tick_interval_ms)) {
                self.last_sync = None;
                self.request_next_chunk(0).await;
            }
        }
    }
async fn check_progress ( & mut self ) { if let Some ( timestamp ) = self . last_sync { let delta = SystemTime :: now ( ) . duration_since ( timestamp ) . expect ( " " ) ; if delta . as_millis ( ) > ( 2 * u128 :: from ( self . config . tick_interval_ms ) ) { self . last_sync = None ; self . request_next_chunk ( 0 ) . await ; } } }
ensures that StateSynchronizer makes progress
if peer is not responding, issues new sync request
ensures that StateSynchronizer makes progress if peer is not responding issues new sync request
&mut self
&mut self