Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Ermal Kaleci <[email protected]>
  • Loading branch information
ermalkaleci committed May 3, 2024
1 parent 6015289 commit c739984
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions bin/collator/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,26 +459,29 @@ pub fn run() -> Result<()> {
let runner = cli.create_runner(cmd)?;
if runner.config().chain_spec.is_astar() {
runner.sync_run(|config| {
let PartialComponents { client, .. } = parachain::new_partial::<astar::RuntimeApi, astar::Executor, _>(
&config,
parachain::build_import_queue,
)?;
let PartialComponents { client, .. } =
parachain::new_partial::<astar::RuntimeApi, astar::Executor, _>(
&config,
parachain::build_import_queue,
)?;
cmd.run(config.chain_spec.as_ref(), client.as_ref())
})
} else if runner.config().chain_spec.is_shiden() {
runner.sync_run(|config| {
let PartialComponents { client, .. } = parachain::new_partial::<shiden::RuntimeApi, shiden::Executor, _>(
&config,
parachain::build_import_queue,
)?;
let PartialComponents { client, .. } =
parachain::new_partial::<shiden::RuntimeApi, shiden::Executor, _>(
&config,
parachain::build_import_queue,
)?;
cmd.run(config.chain_spec.as_ref(), client.as_ref())
})
} else {
runner.sync_run(|config| {
let PartialComponents { client, .. } = parachain::new_partial::<shibuya::RuntimeApi, shibuya::Executor, _>(
&config,
parachain::build_import_queue,
)?;
let PartialComponents { client, .. } =
parachain::new_partial::<shibuya::RuntimeApi, shibuya::Executor, _>(
&config,
parachain::build_import_queue,
)?;
cmd.run(config.chain_spec.as_ref(), client.as_ref())
})
}
Expand Down

0 comments on commit c739984

Please sign in to comment.