Skip to content

Commit

Permalink
Add todo.
Browse files Browse the repository at this point in the history
  • Loading branch information
eskimor committed Nov 7, 2023
1 parent c0c23b0 commit 79cc200
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions polkadot/runtime/parachains/src/assigner_bulk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ impl<T: Config> Pallet<T> {
let mut insert_at = if queue.last <= begin { queue.last } else { queue.first };

// Search insertion point (usually last, thus skipped):
// TODO: Although unexpected, it will most likely be better to just fail. ->
// Get rid of this loop and document that new assignments are only accepted at
// the end.
while insert_at < queue.last {
match CoreSchedules::<T>::get((insert_at, core_idx))
.and_then(|s| s.next_schedule)
Expand Down

0 comments on commit 79cc200

Please sign in to comment.