fn update_metrics(&self) {
        if let Some(max_height) = self.by_height.keys().next_back() {
            metrics::gauge!("state.memory.queued.max.height", max_height.0 as f64);
        } else {
            // use f64::NAN as a sentinel value for "None", because 0 is a valid height
            metrics::gauge!("state.memory.queued.max.height", f64::NAN);
        }
        metrics::gauge!("state.memory.queued.block.count", self.blocks.len() as f64);
    }
/// Update metrics after the queue is modified
Update metrics after the queue is modified
Update metrics after the queue is modified
fn update_metrics(&self) {
        if let Some(max_height) = self.by_height.keys().next_back() {
            metrics::gauge!("state.memory.queued.max.height", max_height.0 as f64);
        } else {
            // use f64::NAN as a sentinel value for "None", because 0 is a valid height
            metrics::gauge!("state.memory.queued.max.height", f64::NAN);
        }
        metrics::gauge!("state.memory.queued.block.count", self.blocks.len() as f64);
    }
fn update_metrics ( & self ) { if let Some ( max_height ) = self . by_height . keys ( ) . next_back ( ) { metrics :: gauge ! ( " " max_height 0 as f64 ) ; } else { // use f64::NAN as a sentinel value for "None", because 0 is a valid height metrics :: gauge ! ( " " f64 NAN ) ; } metrics :: gauge ! ( " " self blocks len ( ) as f64 ) ; }
Update metrics after the queue is modified
Update metrics after the queue is modified
&self