Skip to content

Commit

Permalink
Apply PR code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jul 25, 2024
1 parent 598efac commit cb4242f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chain/src/consume_unverified.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ impl ConsumeUnverifiedBlocks {

pub(crate) fn start(mut self) {
loop {
let _trace_begin_loop = minstant::Instant::now();
let trace_begin_loop = minstant::Instant::now();
select! {
recv(self.unverified_block_rx) -> msg => match msg {
Ok(unverified_task) => {
// process this unverified block
if let Some(handle) = ckb_metrics::handle() {
handle.ckb_chain_consume_unverified_block_waiting_block_duration.observe(_trace_begin_loop.elapsed().as_secs_f64())
handle.ckb_chain_consume_unverified_block_waiting_block_duration.observe(trace_begin_loop.elapsed().as_secs_f64())
}
let _ = self.tx_pool_controller.suspend_chunk_process();

Expand Down Expand Up @@ -883,8 +883,6 @@ impl ConsumeUnverifiedBlockProcessor {

self.shared.store_snapshot(Arc::clone(&new_snapshot));

// NOTE: Dont update tx-pool when truncate

Ok(())
}
}
Expand Down

0 comments on commit cb4242f

Please sign in to comment.