pub fn idle<T: BlockTree>(&mut self, now: LocalTime, tree: &T) {
        if now - self.last_idle.unwrap_or_default() >= IDLE_TIMEOUT {
            self.sync(tree, now);
            self.last_idle = Some(now);
            self.upstream.set_timeout(IDLE_TIMEOUT);
            self.inflight.clear();
        }
    }
/// Called periodically. Triggers syncing if necessary.
Called periodically. Triggers syncing if necessary.
Called periodically . Triggers syncing if necessary .
pub fn idle<T: BlockTree>(&mut self, now: LocalTime, tree: &T) {
        if now - self.last_idle.unwrap_or_default() >= IDLE_TIMEOUT {
            self.sync(tree, now);
            self.last_idle = Some(now);
            self.upstream.set_timeout(IDLE_TIMEOUT);
            self.inflight.clear();
        }
    }
pub fn idle < T : BlockTree > ( & mut self , now : LocalTime , tree : & T ) { if now - self . last_idle . unwrap_or_default ( ) >= IDLE_TIMEOUT { self . sync ( tree , now ) ; self . last_idle = Some ( now ) ; self . upstream . set_timeout ( IDLE_TIMEOUT ) ; self . inflight . clear ( ) ; } }
Called periodically.
Called periodically .
&mut self
now
LocalTime
tree
&T