Add benchmarking pipeline to node-template (#7122)

This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-09-17 10:09:59 +02:00
1 parent 9aa8698cfc
commit ab97e94972
8 files changed
+91 -13

No files matched your search

+2 -3
View File
@@ -88,9 +88,8 @@ pub fn run() -> Result<()> {
runner.sync_run(|config| cmd.run::<Block, Executor>(config))
} else {
println!("Benchmarking wasn't enabled when building the node. \
You can enable it with `--features runtime-benchmarks`.");
Ok(())
Err("Benchmarking wasn't enabled when building the node. \
You can enable it with `--features runtime-benchmarks`.".into())
}
}
Some(Subcommand::Key(cmd)) => cmd.run(),