We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7c2d4 commit 2b53f39Copy full SHA for 2b53f39
pallets/subtensor/src/utils/misc.rs
@@ -549,7 +549,8 @@ impl<T: Config> Pallet<T> {
549
Self::deposit_event(Event::ScalingLawPowerSet(netuid, scaling_law_power));
550
}
551
552
- pub fn get_max_weight_limit(_netuid: NetUid) -> u16 {
+ #[inline(always)]
553
+ pub const fn get_max_weight_limit(_netuid: NetUid) -> u16 {
554
u16::MAX
555
556
0 commit comments