Skip to content

Commit 0d3a1d5

Browse files
committed
Refactor rate-limiting migration
1 parent cd09153 commit 0d3a1d5

File tree

3 files changed

+421
-158
lines changed

3 files changed

+421
-158
lines changed

pallets/rate-limiting/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ pub mod pallet {
571571
})
572572
}
573573

574-
pub(crate) fn effective_span(
574+
/// Resolves the span for a target/scope and applies the configured span adjustment
575+
/// (e.g., tempo scaling) using the pallet's scope resolver.
576+
pub fn effective_span(
575577
origin: &DispatchOriginOf<<T as Config<I>>::RuntimeCall>,
576578
call: &<T as Config<I>>::RuntimeCall,
577579
target: &RateLimitTarget<<T as Config<I>>::GroupId>,

0 commit comments

Comments
 (0)