Skip to content

Commit

Permalink
Fix inherent benchmarking code
Browse files Browse the repository at this point in the history
  • Loading branch information
rakanalh committed Nov 30, 2023
1 parent 438b7e3 commit a364862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions node/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ version = "4.8.3"
edition = "2021"

[dependencies]
futures = "0.3.21"

frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.36" }
frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.36" }
frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.36" }
Expand Down
2 changes: 1 addition & 1 deletion node/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ pub fn benchmark_inherent_data() -> Result<sp_inherents::InherentData, sp_inhere
let d = std::time::Duration::from_millis(0);
let timestamp = sp_timestamp::InherentDataProvider::new(d.into());

timestamp.provide_inherent_data(&mut inherent_data)?;
futures::executor::block_on(timestamp.provide_inherent_data(&mut inherent_data))?;

Ok(inherent_data)
}

0 comments on commit a364862

Please sign in to comment.