Skip to content
Snippets Groups Projects
Unverified Commit 5fb43978 authored by Ermal Kaleci's avatar Ermal Kaleci Committed by GitHub
Browse files

Update pr_3844.prdoc (#3988)

parent a7acec70
Branches
No related merge requests found
Pipeline #462499 passed with stages
in 1 hour, 6 minutes, and 25 seconds
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment