diff --git a/cumulus/pallets/collator-selection/src/lib.rs b/cumulus/pallets/collator-selection/src/lib.rs index 371154d04323e958a02cbac93764df353e0335db..9800104a832f36dcd88e40403fffb79ca3690972 100644 --- a/cumulus/pallets/collator-selection/src/lib.rs +++ b/cumulus/pallets/collator-selection/src/lib.rs @@ -379,9 +379,9 @@ pub mod pallet { candidates.remove(index); <LastAuthoredBlock<T>>::remove(who.clone()); Ok(candidates.len()) - }); + })?; Self::deposit_event(Event::CandidateRemoved(who.clone())); - current_count + Ok(current_count) } /// Assemble the current set of candidates and invulnerables into the next collator set.