Skip to content

Commit 2b53f39

Browse files
committed
fix
1 parent be7c2d4 commit 2b53f39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pallets/subtensor/src/utils/misc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ impl<T: Config> Pallet<T> {
549549
Self::deposit_event(Event::ScalingLawPowerSet(netuid, scaling_law_power));
550550
}
551551

552-
pub fn get_max_weight_limit(_netuid: NetUid) -> u16 {
552+
#[inline(always)]
553+
pub const fn get_max_weight_limit(_netuid: NetUid) -> u16 {
553554
u16::MAX
554555
}
555556

0 commit comments

Comments
 (0)