Skip to content

Fix payments on-idle #868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update comment
  • Loading branch information
zjb0807 committed Jan 10, 2023
commit 8ed25347603b0f4ef908cb8c0afa60918d42189d
2 changes: 1 addition & 1 deletion payments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub mod pallet {
/// be executed and will process them.
fn on_idle(now: T::BlockNumber, remaining_weight: Weight) -> Weight {
const MAX_TASKS_TO_PROCESS: usize = 5;
// reduce the weight used to read the task list
// used to read the task list
let mut used_weight = T::WeightInfo::remove_task();
let cancel_weight = T::WeightInfo::cancel();

Expand Down