Skip to content

Commit

Permalink
unify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Nov 6, 2024
1 parent e1c05b3 commit 4b652cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions substrate/frame/fast-unstake/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ mod benchmarks {

#[benchmark]
fn on_idle_unstake(b: Linear<1, { T::BatchSize::get() }>) {
// on_idle. we don't check anyone, but fully unbond them.
// on_idle: When we don't check anyone, but fully unbond them.

ErasToCheckPerBlock::<T>::put(1);
for who in create_unexposed_batch::<T>(b).into_iter() {
Expand All @@ -107,7 +107,7 @@ mod benchmarks {
));
}

// run on_idle once. This will check era 0.
// Run on_idle once. This will check era 0.
assert_eq!(Head::<T>::get(), None);
on_idle_full_block::<T>();

Expand All @@ -133,7 +133,7 @@ mod benchmarks {

#[benchmark]
fn on_idle_check(v: Linear<1, 256>, b: Linear<1, { T::BatchSize::get() }>) {
// on_idle, when we check some number of eras and the queue is already set.
// on_idle: When we check some number of eras and the queue is already set.

let u = T::MaxErasToCheckPerBlock::get().min(T::Staking::bonding_duration());

Expand Down

0 comments on commit 4b652cf

Please sign in to comment.