Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lau <[email protected]>
  • Loading branch information
AurevoirXavier committed Jun 24, 2024
1 parent 443b7cd commit edffda7
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 161 deletions.
24 changes: 12 additions & 12 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub fn run() -> Result<()> {
($config:expr, $cli:ident, |$partials:ident| $code:expr) => {{
#[cfg(feature = "crab-native")]
if $config.chain_spec.is_crab() {
let $partials = service::new_partial::<CrabRuntimeApi, CrabRuntimeExecutor>(
let $partials = service::new_partial::<CrabRuntimeApi>(
&$config,
&$cli.eth_args.build_eth_rpc_config(),
)?;
Expand All @@ -250,7 +250,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "darwinia-native")]
if $config.chain_spec.is_darwinia() {
let $partials = service::new_partial::<DarwiniaRuntimeApi, DarwiniaRuntimeExecutor>(
let $partials = service::new_partial::<DarwiniaRuntimeApi>(
&$config,
&$cli.eth_args.build_eth_rpc_config(),
)?;
Expand All @@ -260,7 +260,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "koi-native")]
if $config.chain_spec.is_koi() {
let $partials = service::new_partial::<KoiRuntimeApi, KoiRuntimeExecutor>(
let $partials = service::new_partial::<KoiRuntimeApi>(
&$config,
&$cli.eth_args.build_eth_rpc_config(),
)?;
Expand All @@ -282,7 +282,7 @@ pub fn run() -> Result<()> {
#[cfg(feature = "crab-native")]
if chain_spec.is_crab() {
return runner.async_run(|$config| {
let $components = service::new_partial::<CrabRuntimeApi, CrabRuntimeExecutor>(
let $components = service::new_partial::<CrabRuntimeApi>(
&$config,
&$cli.eth_args.build_eth_rpc_config()
)?;
Expand All @@ -295,7 +295,7 @@ pub fn run() -> Result<()> {
#[cfg(feature = "darwinia-native")]
if chain_spec.is_darwinia() {
return runner.async_run(|$config| {
let $components = service::new_partial::<DarwiniaRuntimeApi, DarwiniaRuntimeExecutor>(
let $components = service::new_partial::<DarwiniaRuntimeApi>(
&$config,
&$cli.eth_args.build_eth_rpc_config()
)?;
Expand All @@ -308,7 +308,7 @@ pub fn run() -> Result<()> {
#[cfg(feature = "koi-native")]
if chain_spec.is_koi() {
return runner.async_run(|$config| {
let $components = service::new_partial::<KoiRuntimeApi, KoiRuntimeExecutor>(
let $components = service::new_partial::<KoiRuntimeApi>(
&$config,
&$cli.eth_args.build_eth_rpc_config()
)?;
Expand Down Expand Up @@ -506,7 +506,7 @@ pub fn run() -> Result<()> {
if chain_spec.is_dev() {
#[cfg(feature = "crab-native")]
if chain_spec.is_crab() {
return service::start_dev_node::<CrabRuntimeApi, CrabRuntimeExecutor>(
return service::start_dev_node::<CrabRuntimeApi>(
config,
&eth_rpc_config,
)
Expand All @@ -515,7 +515,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "darwinia-native")]
if chain_spec.is_darwinia() {
return service::start_dev_node::<DarwiniaRuntimeApi, DarwiniaRuntimeExecutor>(
return service::start_dev_node::<DarwiniaRuntimeApi>(
config,
&eth_rpc_config,
)
Expand All @@ -524,7 +524,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "koi-native")]
if chain_spec.is_koi() {
return service::start_dev_node::<KoiRuntimeApi, KoiRuntimeExecutor>(
return service::start_dev_node::<KoiRuntimeApi>(
config,
&eth_rpc_config,
)
Expand All @@ -538,7 +538,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "crab-native")]
if chain_spec.is_crab() {
return service::start_parachain_node::<CrabRuntimeApi, CrabRuntimeExecutor>(
return service::start_parachain_node::<CrabRuntimeApi>(
config,
polkadot_config,
collator_options,
Expand All @@ -553,7 +553,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "darwinia-native")]
if chain_spec.is_darwinia() {
return service::start_parachain_node::<DarwiniaRuntimeApi, DarwiniaRuntimeExecutor>(
return service::start_parachain_node::<DarwiniaRuntimeApi>(
config,
polkadot_config,
collator_options,
Expand All @@ -568,7 +568,7 @@ pub fn run() -> Result<()> {

#[cfg(feature = "koi-native")]
if chain_spec.is_koi() {
return service::start_parachain_node::<KoiRuntimeApi, KoiRuntimeExecutor>(
return service::start_parachain_node::<KoiRuntimeApi>(
config,
polkadot_config,
collator_options,
Expand Down
80 changes: 0 additions & 80 deletions node/src/service/executors.rs

This file was deleted.

Loading

0 comments on commit edffda7

Please sign in to comment.