Skip to content

Commit

Permalink
weights: fix shortcoming of umbrella crate
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed Jul 18, 2024
1 parent 0931e71 commit 6ad6685
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runtimes/common/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//! WEIGHT-PATH: ``
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
use polkadot_sdk::*;

// Executed Command:
// ../target/release/timechain-node
// benchmark
// overhead

use polkadot_sdk::*;

use sp_core::parameter_types;
use sp_weights::{constants, Weight};

Expand Down
4 changes: 2 additions & 2 deletions runtimes/common/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//! WEIGHT-PATH: ``
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
use polkadot_sdk::*;

// Executed Command:
// ../target/release/timechain-node
// benchmark
// overhead

use polkadot_sdk::*;

use sp_core::parameter_types;
use sp_weights::{constants, Weight};

Expand Down
2 changes: 2 additions & 0 deletions runtimes/mainnet/src/weights/elections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down
2 changes: 2 additions & 0 deletions runtimes/mainnet/src/weights/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down
2 changes: 2 additions & 0 deletions runtimes/mainnet/src/weights/networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down
2 changes: 2 additions & 0 deletions runtimes/testnet/src/weights/elections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down
2 changes: 2 additions & 0 deletions runtimes/testnet/src/weights/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down
2 changes: 2 additions & 0 deletions runtimes/testnet/src/weights/networks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down
2 changes: 2 additions & 0 deletions runtimes/testnet/src/weights/timegraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use polkadot_sdk::*;

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;

Expand Down

0 comments on commit 6ad6685

Please sign in to comment.