rustfmt bags-utils and fix typos

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch
2025-07-29 14:24:30 +03:00
parent c2f9958c1a
commit 6d06fcf9a0
2 changed files with 13 additions and 18 deletions

View File

@@ -57,28 +57,23 @@ async fn main() {
match options.command {
(Command::CheckMigration) => {
migration::execute::<Runtime, Block>(
CSPR as u64,
"CSPR",
options.uri.clone(),
).await;
},
migration::execute::<Runtime, Block>(CSPR as u64, "CSPR", options.uri.clone())
.await;
}
(Command::SanityCheck) => {
try_state::execute::<Runtime, Block>(
CSPR as u64,
"CSPR",
options.uri.clone(),
).await;
},
try_state::execute::<Runtime, Block>(CSPR as u64, "CSPR", options.uri.clone())
.await;
}
(Command::Snapshot) => {
snapshot::execute::<Runtime, Block>(
options.snapshot_limit
CSPR.try_into().unwrap(),
options.snapshot_limit,
CSPR.try_into().unwrap(),
options.uri.clone(),
).await;
},
)
.await;
}
}
},
}
_ => Err("Wrong runtime was used"),
}
}