mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(stages): log hash insertion progress as Display string (#7535)
This commit is contained in:
@ -206,7 +206,7 @@ impl<DB: Database> Stage<DB> for AccountHashingStage {
|
||||
if index > 0 && index % interval == 0 {
|
||||
info!(
|
||||
target: "sync::stages::hashing_account",
|
||||
progress = format!("{:.2}%", (index as f64 / total_hashes as f64) * 100.0),
|
||||
progress = %format!("{:.2}%", (index as f64 / total_hashes as f64) * 100.0),
|
||||
"Inserting hashes"
|
||||
);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ impl<DB: Database> Stage<DB> for StorageHashingStage {
|
||||
if index > 0 && index % interval == 0 {
|
||||
info!(
|
||||
target: "sync::stages::hashing_storage",
|
||||
progress = format!("{:.2}%", (index as f64 / total_hashes as f64) * 100.0),
|
||||
progress = %format!("{:.2}%", (index as f64 / total_hashes as f64) * 100.0),
|
||||
"Inserting hashes"
|
||||
);
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ impl<DB: Database> Stage<DB> for TransactionLookupStage {
|
||||
info!(
|
||||
target: "sync::stages::transaction_lookup",
|
||||
?append_only,
|
||||
progress = format!("{:.2}%", (index as f64 / total_hashes as f64) * 100.0),
|
||||
progress = %format!("{:.2}%", (index as f64 / total_hashes as f64) * 100.0),
|
||||
"Inserting hashes"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user