Skip to content
Snippets Groups Projects
Commit f37886db authored by Cédric Moreau's avatar Cédric Moreau
Browse files

feat(smith-members): refact: renaming

parent b99ed57d
Branches
Tags 0.43.0
No related merge requests found
...@@ -45,6 +45,6 @@ impl<T: Config> pallet_authority_members::OnIncomingMember<T::MemberId> for Pall ...@@ -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> { impl<T: Config> pallet_authority_members::OnNewSession for Pallet<T> {
fn on_new_session(index: SessionIndex) { fn on_new_session(index: SessionIndex) {
CurrentSession::<T>::put(index); CurrentSession::<T>::put(index);
Pallet::<T>::remove_expired_smiths(index); Pallet::<T>::do_exclude_expired_smiths(index);
} }
} }
...@@ -375,7 +375,7 @@ impl<T: Config> Pallet<T> { ...@@ -375,7 +375,7 @@ impl<T: Config> Pallet<T> {
} }
// TODO: return what? // 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) { if let Some(smiths_to_remove) = ExpiresOn::<T>::get(at) {
for smith in smiths_to_remove { for smith in smiths_to_remove {
if let Some(smith_meta) = Smiths::<T>::get(smith) { if let Some(smith_meta) = Smiths::<T>::get(smith) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment