Skip to content

Commit 355829f

Browse files
committed
pretty log
1 parent 5f5f338 commit 355829f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

crates/client/src/state_dump.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ pub fn export_space_accounts_with_callback<F: Fn(AccountState)>(
268268

269269
let mut inner_callback = |(key, value): (Vec<u8>, Box<[u8]>)| {
270270
total_key_count += 1;
271-
let storage_key_with_space =
272-
StorageKeyWithSpace::from_key_bytes::<SkipInputCheck>(&key);
273-
if storage_key_with_space.space != space {
274-
core_space_key_count += 1;
275-
return;
276-
}
277271

278272
if total_key_count % 10000 == 0 {
279273
println(&format!(
@@ -282,6 +276,13 @@ pub fn export_space_accounts_with_callback<F: Fn(AccountState)>(
282276
));
283277
}
284278

279+
let storage_key_with_space =
280+
StorageKeyWithSpace::from_key_bytes::<SkipInputCheck>(&key);
281+
if storage_key_with_space.space != space {
282+
core_space_key_count += 1;
283+
return;
284+
}
285+
285286
if let StorageKey::AccountKey(address_bytes) =
286287
storage_key_with_space.key
287288
{

crates/dbs/storage/src/impls/single_mpt_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl SingleMptState {
320320
total_key_count += 1;
321321
if total_key_count % 10000 == 0 {
322322
println!(
323-
"read_all_with_callback_impl -> total_key_count: {} {}",
323+
"read_all_with_callback_impl: total_key_count {} key {}",
324324
total_key_count,
325325
k.to_hex::<String>()
326326
);

0 commit comments

Comments
 (0)