Skip to content

Commit

Permalink
fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Doordashcon committed Nov 12, 2024
1 parent d108f47 commit 1f9de5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion substrate/frame/salary/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ pub mod pallet {
status.cycle_start.saturating_accrue(cycle_period);
now >= status.cycle_start
})]
#[pallet::task_weight(T::WeightInfo::bump_offchain())]
#[pallet::task_weight(T::DbWeight::get().reads(1))]
#[pallet::task_index(0)]
pub fn bump_offchain() -> DispatchResult {
let mut status = Status::<T, I>::get().ok_or(Error::<T, I>::NotStarted)?;
Expand Down
4 changes: 2 additions & 2 deletions substrate/frame/salary/src/weights.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f9de5a

Please sign in to comment.