Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Aug 29, 2023
1 parent ae77dea commit b6ad720
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sync/src/relayer/compact_block_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl<'a> CompactBlockProcess<'a> {

if let Some(metrics) = ckb_metrics::handle() {
metrics
.ckb_relay_cb_verify_time
.ckb_relay_cb_verify_duration
.observe(instant.elapsed().as_secs_f64());
}
Status::ok()
Expand Down
10 changes: 5 additions & 5 deletions util/metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ pub struct Metrics {
pub ckb_freezer_read: IntCounter,
/// Counter for relay transaction short id collide
pub ckb_relay_transaction_short_id_collide: IntCounter,
/// Histogram for relay compact block verify time
pub ckb_relay_cb_verify_time: Histogram,
/// Histogram for relay compact block verify duration
pub ckb_relay_cb_verify_duration: Histogram,
/// Counter for relay compact block transaction count
pub ckb_relay_cb_transaction_count: IntCounter,
/// Counter for relay compact block reconstruct ok
Expand Down Expand Up @@ -81,9 +81,9 @@ static METRICS: once_cell::sync::Lazy<Metrics> = once_cell::sync::Lazy::new(|| M
"The CKB relay transaction short id collide"
)
.unwrap(),
ckb_relay_cb_verify_time: register_histogram!(
"ckb_relay_cb_verify_time",
"The CKB relay compact block verify time"
ckb_relay_cb_verify_duration: register_histogram!(
"ckb_relay_cb_verify_duration",
"The CKB relay compact block verify duration"
)
.unwrap(),
ckb_relay_cb_transaction_count: register_int_counter!(
Expand Down

0 comments on commit b6ad720

Please sign in to comment.