mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +00:00
* Add default error for unsupported benchmarking command Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Same for the parachain-template... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p polkadot-primitives Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
21d2f135df
commit
fcaa0bbe7c
Generated
+252
-252
File diff suppressed because it is too large
Load Diff
@@ -227,9 +227,12 @@ pub fn run() -> Result<()> {
|
|||||||
|
|
||||||
cmd.run(config, partials.client.clone(), db, storage)
|
cmd.run(config, partials.client.clone(), db, storage)
|
||||||
}),
|
}),
|
||||||
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
|
|
||||||
BenchmarkCmd::Machine(cmd) =>
|
BenchmarkCmd::Machine(cmd) =>
|
||||||
runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())),
|
runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())),
|
||||||
|
// NOTE: this allows the Client to leniently implement
|
||||||
|
// new benchmark commands without requiring a companion MR.
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
|
_ => Err("Benchmarking sub-command unsupported".into()),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Some(Subcommand::TryRuntime(cmd)) => {
|
Some(Subcommand::TryRuntime(cmd)) => {
|
||||||
|
|||||||
@@ -500,9 +500,12 @@ pub fn run() -> Result<()> {
|
|||||||
cmd.run(config, partials.client.clone(), db, storage)
|
cmd.run(config, partials.client.clone(), db, storage)
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
|
|
||||||
BenchmarkCmd::Machine(cmd) =>
|
BenchmarkCmd::Machine(cmd) =>
|
||||||
runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())),
|
runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())),
|
||||||
|
// NOTE: this allows the Client to leniently implement
|
||||||
|
// new benchmark commands without requiring a companion MR.
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
|
_ => Err("Benchmarking sub-command unsupported".into()),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Some(Subcommand::TryRuntime(cmd)) => {
|
Some(Subcommand::TryRuntime(cmd)) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user