Skip to content

Commit

Permalink
Added strut rust doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thea-leake committed Dec 15, 2022
1 parent 5fa2c61 commit 446feb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ pub fn native_version() -> NativeVersion {
}
}

/// Strut for Get impl of BlockWeights with BlockWeight generation with relay max_pov_size as proof size
pub struct CalculateBlockWeights;

impl Get<BlockWeights> for CalculateBlockWeights {
Expand Down Expand Up @@ -159,6 +160,7 @@ impl Get<BlockWeights> for CalculateBlockWeights {
}
}

/// Strut for Get impl of MaxBlockWeight with Weight using relay max_pov_size as proof size
pub struct MaxBlockWeight;

impl Get<Weight> for MaxBlockWeight {
Expand Down
2 changes: 2 additions & 0 deletions runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ pub fn native_version() -> NativeVersion {
}
}

/// Strut for Get impl of BlockWeights with BlockWeight generation with relay max_pov_size as proof size
pub struct CalculateBlockWeights;

impl Get<BlockWeights> for CalculateBlockWeights {
Expand Down Expand Up @@ -141,6 +142,7 @@ impl Get<BlockWeights> for CalculateBlockWeights {
}
}

/// Strut for Get impl of MaxBlockWeight with Weight using relay max_pov_size as proof size
pub struct MaxBlockWeight;

impl Get<Weight> for MaxBlockWeight {
Expand Down
2 changes: 2 additions & 0 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ parameter_types! {
pub const SS58Prefix: u8 = 36;
}

/// Strut for Get impl of BlockWeights with BlockWeight generation with relay max_pov_size as proof size
pub struct CalculateBlockWeights;

impl Get<BlockWeights> for CalculateBlockWeights {
Expand Down Expand Up @@ -177,6 +178,7 @@ impl Get<BlockWeights> for CalculateBlockWeights {
}
}

/// Strut for Get impl of MaxBlockWeight with Weight using relay max_pov_size as proof size
pub struct MaxBlockWeight;

impl Get<Weight> for MaxBlockWeight {
Expand Down

0 comments on commit 446feb6

Please sign in to comment.