diff --git a/pallets/smith-members/src/impls.rs b/pallets/smith-members/src/impls.rs index 12b7c907731d43a427e797b932531cd224f157ab..b32201d864f75f1d26ee31b0cee136b7f314bb15 100644 --- a/pallets/smith-members/src/impls.rs +++ b/pallets/smith-members/src/impls.rs @@ -45,6 +45,6 @@ impl<T: Config> pallet_authority_members::OnIncomingMember<T::MemberId> for Pall impl<T: Config> pallet_authority_members::OnNewSession for Pallet<T> { fn on_new_session(index: SessionIndex) { CurrentSession::<T>::put(index); - Pallet::<T>::remove_expired_smiths(index); + Pallet::<T>::do_exclude_expired_smiths(index); } } diff --git a/pallets/smith-members/src/lib.rs b/pallets/smith-members/src/lib.rs index 00ba249e0957bc06abd23d714a40cb425b8477cc..131b93d70b336c52a3fdb4f330652e86032216b6 100644 --- a/pallets/smith-members/src/lib.rs +++ b/pallets/smith-members/src/lib.rs @@ -375,7 +375,7 @@ impl<T: Config> Pallet<T> { } // TODO: return what? - fn remove_expired_smiths(at: SessionIndex) { + fn do_exclude_expired_smiths(at: SessionIndex) { if let Some(smiths_to_remove) = ExpiresOn::<T>::get(at) { for smith in smiths_to_remove { if let Some(smith_meta) = Smiths::<T>::get(smith) {