Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 52d7029

Browse files
authored
Update pallets/xcmp-queue/src/lib.rs
1 parent 7715aec commit 52d7029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/xcmp-queue/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ impl<T: Config> Pallet<T> {
831831
if shuffle_index < status.len() {
832832
weight_available +=
833833
(max_weight - weight_available) / (weight_restrict_decay.ref_time() + 1);
834-
if (weight_available + threshold_weight).all_gt(max_weight) {
834+
if (weight_available + threshold_weight).any_gt(max_weight) {
835835
weight_available = max_weight;
836836
}
837837
} else {

0 commit comments

Comments
 (0)