Skip to content

Commit 1c83232

Browse files
committed
fix clippy
1 parent f1ca439 commit 1c83232

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pallets/subtensor/src/subnets/weights.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ impl<T: Config> Pallet<T> {
728728
// --- 7. Ensure the uid is not setting weights faster than the weights_set_rate_limit.
729729
let neuron_uid = Self::get_uid_for_net_and_hotkey(netuid, &hotkey)?;
730730
let current_block: u64 = Self::get_current_block_as_u64();
731+
731732
ensure!(
732733
Self::check_rate_limit(netuid, neuron_uid, current_block),
733734
Error::<T>::SettingWeightsTooFast

0 commit comments

Comments
 (0)