Convert spaces to tabs (#6799)

This commit is contained in:
Ashley
2020-08-03 15:48:32 +02:00
committed by GitHub
parent 1a84ad87c0
commit 07facb13c2
11 changed files with 262 additions and 262 deletions
+11 -11
View File
@@ -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();