Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
4meta5 committed Jun 13, 2024
1 parent acbcae3 commit a40e8ae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pallets/tasks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,6 @@ pub mod pallet {
// return early to prevent division by 0 when choosing from 0 shards
return;
}
// first shard assigned tasks by current block mod shards.len()
let first_shard_index = frame_system::Pallet::<T>::block_number()
% (network_shards.len() as u32).into();
let index = TryInto::<usize>::try_into(first_shard_index).unwrap_or_default();
Expand Down

0 comments on commit a40e8ae

Please sign in to comment.