mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 15:01:04 +00:00
Convert spaces to tabs (#6799)
This commit is contained in:
@@ -41,8 +41,8 @@ impl MetricsLink {
|
||||
/// Authorship metrics.
|
||||
#[derive(Clone)]
|
||||
pub struct Metrics {
|
||||
pub block_constructed: Histogram,
|
||||
pub number_of_transactions: Gauge<U64>,
|
||||
pub block_constructed: Histogram,
|
||||
pub number_of_transactions: Gauge<U64>,
|
||||
}
|
||||
|
||||
impl Metrics {
|
||||
@@ -54,14 +54,14 @@ impl Metrics {
|
||||
"Histogram of time taken to construct new block",
|
||||
))?,
|
||||
registry,
|
||||
)?,
|
||||
number_of_transactions: register(
|
||||
Gauge::new(
|
||||
"proposer_number_of_transactions",
|
||||
"Number of transactions included in block",
|
||||
)?,
|
||||
registry,
|
||||
)?,
|
||||
)?,
|
||||
number_of_transactions: register(
|
||||
Gauge::new(
|
||||
"proposer_number_of_transactions",
|
||||
"Number of transactions included in block",
|
||||
)?,
|
||||
registry,
|
||||
)?,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -686,7 +686,7 @@ fn changes_proof_is_generated_and_checked_when_headers_are_not_pruned() {
|
||||
match local_result == expected_result {
|
||||
true => (),
|
||||
false => panic!(format!("Failed test {}: local = {:?}, expected = {:?}",
|
||||
index, local_result, expected_result)),
|
||||
index, local_result, expected_result)),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -843,7 +843,7 @@ fn check_changes_tries_proof_fails_if_proof_is_wrong() {
|
||||
Box::new(TaskExecutor::new()),
|
||||
);
|
||||
assert!(local_checker.check_changes_tries_proof(4, &remote_proof.roots,
|
||||
remote_proof.roots_proof.clone()).is_err());
|
||||
remote_proof.roots_proof.clone()).is_err());
|
||||
|
||||
// fails when proof is broken
|
||||
let mut local_storage = DummyStorage::new();
|
||||
|
||||
Reference in New Issue
Block a user