Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
open-junius committed Jan 10, 2025
1 parent f1ca439 commit 1c83232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pallets/subtensor/src/subnets/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ impl<T: Config> Pallet<T> {
// --- 7. Ensure the uid is not setting weights faster than the weights_set_rate_limit.
let neuron_uid = Self::get_uid_for_net_and_hotkey(netuid, &hotkey)?;
let current_block: u64 = Self::get_current_block_as_u64();

ensure!(
Self::check_rate_limit(netuid, neuron_uid, current_block),
Error::<T>::SettingWeightsTooFast
Expand Down

0 comments on commit 1c83232

Please sign in to comment.