Skip to content

Commit

Permalink
Update pr_3844.prdoc (paritytech#3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Apr 4, 2024
1 parent a7acec7 commit 5fb4397
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions prdoc/pr_3844.prdoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ title: Add the ability for MessageQueue to process enqueued messages on idle
doc:
- audience: Runtime Dev
description: |
Add the option to use remaining weight on idle for processing enqueued messages.
This will increase the chances of the messages enqueued during inherent extrinsics to be processed in the same block.
New config types is added on the message-queue `Config` trait:
- `IdleMaxServiceWeight`
Add the option to use remaining weight on idle for processing enqueued messages.
This will increase the chances of the messages enqueued during inherent extrinsics to be processed in the same block.
New config types is added on the message-queue `Config` trait:
- `IdleMaxServiceWeight`

example:
```rust
parameter_types! {
// The maximum weight to be used from remaining weight for processing enqueued messages on idle
pub const IdleMaxServiceWeight: Weight = Some(Weight);
}
example:
```rust
parameter_types! {
// The maximum weight to be used from remaining weight for processing enqueued messages on idle
pub const IdleMaxServiceWeight: Weight = Some(Weight);
}

type IdleMaxServiceWeight = IdleMaxServiceWeight; // or `()` to not use this feature
```
type IdleMaxServiceWeight = IdleMaxServiceWeight; // or `()` to not use this feature
```

crates:
- name: pallet-message-queue
- name: pallet-message-queue
bump: major

0 comments on commit 5fb4397

Please sign in to comment.