`MessageQueue`: unknit permanently overweight books (#13528)
* Unknit permanently overweight books A book with only permanently overweight messages should be unkit from the ready ring. This does currently not happen since perm. overweight messages are not counted as "processed" and therefore not increase the "total_processed" counter. This is only a problem when the next and only message that is processed is overweight. Eventually this should resolve itself when another non-overweight message is enqueued and processed. But for correctness it should be unknitted. Signed-off-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add tests Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * One more tests Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-message-queue --------- Signed-off-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
Showing
- substrate/frame/message-queue/src/lib.rs 2 additions, 2 deletionssubstrate/frame/message-queue/src/lib.rs
- substrate/frame/message-queue/src/mock.rs 9 additions, 0 deletionssubstrate/frame/message-queue/src/mock.rs
- substrate/frame/message-queue/src/mock_helpers.rs 2 additions, 2 deletionssubstrate/frame/message-queue/src/mock_helpers.rs
- substrate/frame/message-queue/src/tests.rs 115 additions, 0 deletionssubstrate/frame/message-queue/src/tests.rs
- substrate/frame/message-queue/src/weights.rs 42 additions, 62 deletionssubstrate/frame/message-queue/src/weights.rs
Please register or sign in to comment