Skip to content

Commit

Permalink
fix benchmarks (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 authored Sep 24, 2020
1 parent 6f44b2c commit c4c9a66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
mod tests;

pub use frame_benchmarking::{
benchmarking, BenchmarkBatch, BenchmarkParameter, BenchmarkResults, Benchmarking, BenchmarkingSetup,
TrackedStorageKey,
benchmarking, BenchmarkBatch, BenchmarkConfig, BenchmarkParameter, BenchmarkResults, Benchmarking,
BenchmarkingSetup, TrackedStorageKey,
};
#[cfg(feature = "std")]
pub use frame_benchmarking::{Analysis, BenchmarkSelector};
Expand Down Expand Up @@ -992,7 +992,7 @@ macro_rules! add_benchmark {
} = config;
if &pallet[..] == &name_string[..] || &pallet[..] == &b"*"[..] {
if &pallet[..] == &b"*"[..] || &benchmark[..] == &b"*"[..] {
for benchmark in $( $location )*::benchmarks(*extra).into_iter() {
for benchmark in $( $location )*::Benchmark::benchmarks(*extra).into_iter() {
$batches.push($crate::BenchmarkBatch {
results: $( $location )*::Benchmark::run_benchmark(
benchmark,
Expand Down

0 comments on commit c4c9a66

Please sign in to comment.