Skip to content

Commit 6de4582

Browse files
committed
monitors
1 parent ffd842e commit 6de4582

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

consensus/src/epoch_manager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,8 +1759,9 @@ impl<P: OnChainConfigProvider> EpochManager<P> {
17591759
p.timestamp_usecs(),
17601760
);
17611761
observe_block(p.timestamp_usecs(), "block_data_prefetch");
1762+
let ts = p.timestamp_usecs();
1763+
defer!(observe_block(ts, "block_forwarded_to"));
17621764
}
1763-
17641765
Self::forward_event_to(buffered_proposal_tx, peer_id, opt_proposal_event)
17651766
.context("proposal precheck sender")
17661767
},

consensus/src/round_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ impl RoundManager {
20392039
info!(epoch = self.epoch_state.epoch, "RoundManager started");
20402040
let mut close_rx = close_rx.into_stream();
20412041
loop {
2042-
tokio::select! {
2042+
monitor!("round_manager_loop", tokio::select! {
20432043
biased;
20442044
close_req = close_rx.select_next_some() => {
20452045
if let Ok(ack_sender) = close_req {
@@ -2163,7 +2163,7 @@ impl RoundManager {
21632163
}
21642164
}
21652165
},
2166-
}
2166+
})
21672167
}
21682168
info!(epoch = self.epoch_state.epoch, "RoundManager stopped");
21692169
}

0 commit comments

Comments
 (0)