chore: run dump stage as blocking task (#2740)

This commit is contained in:
Bjerg
2023-05-19 09:19:58 +02:00
committed by GitHub
parent d9455d6bc2
commit c1b80e7e9d

View File

@ -32,11 +32,7 @@ pub fn run() -> eyre::Result<()> {
Commands::Import(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::Db(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::Stage(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::DumpStage(command) => {
// TODO: This should be run_blocking_until_ctrl_c as well, but fails to compile due to
// weird compiler GAT issues.
runner.run_until_ctrl_c(command.execute())
}
Commands::DumpStage(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::DropStage(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::P2P(command) => runner.run_until_ctrl_c(command.execute()),
Commands::TestVectors(command) => runner.run_until_ctrl_c(command.execute()),