From e87605617c0929c1f79450fa1a38b74d293ec21c Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Wed, 17 Jul 2024 05:08:37 +0200 Subject: [PATCH] WIP: disable certain benchmarks --- node/src/command.rs | 7 ++++--- node/src/main.rs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/node/src/command.rs b/node/src/command.rs index 9bd7f67522..bf16f997c3 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -1,5 +1,5 @@ use crate::{ - benchmarking::{inherent_benchmark_data, RemarkBuilder, TransferKeepAliveBuilder}, + //benchmarking::{inherent_benchmark_data, RemarkBuilder, TransferKeepAliveBuilder}, chain_spec, cli::{Cli, Subcommand}, service::{self, FullClient}, @@ -152,7 +152,7 @@ where cmd.run(config, partial.client, db, storage) }, - BenchmarkCmd::Overhead(cmd) => { + /*BenchmarkCmd::Overhead(cmd) => { // ensure that we keep the task manager alive let partial = service::new_partial::(&config)?; let ext_builder = RemarkBuilder::::new(partial.client.clone()); @@ -187,10 +187,11 @@ where Vec::new(), &ext_factory, ) - }, + },*/ BenchmarkCmd::Machine(cmd) => { cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone()) }, + _ => todo!("Does not compile at the moment"), } }) }, diff --git a/node/src/main.rs b/node/src/main.rs index 8e220e820d..1f2de09071 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -3,7 +3,7 @@ mod chain_spec; #[macro_use] mod service; -mod benchmarking; +//mod benchmarking; mod cli; mod command; mod rpc;