From 4e470954012ec909bb377bf394be17320cedd54c Mon Sep 17 00:00:00 2001 From: Sergey Shulepov Date: Fri, 17 Dec 2021 13:52:41 +0000 Subject: [PATCH] review fixes --- runtime/parachains/src/configuration.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/parachains/src/configuration.rs b/runtime/parachains/src/configuration.rs index 9587b78b6084..c5197981cece 100644 --- a/runtime/parachains/src/configuration.rs +++ b/runtime/parachains/src/configuration.rs @@ -1070,11 +1070,11 @@ impl Pallet { return } - let (past_and_now, future) = pending_configs + let (past_and_present, future) = pending_configs .into_iter() .partition::, _>(|&(apply_at_session, _)| apply_at_session <= *session_index); - if past_and_now.len() > 1 { + if past_and_present.len() > 1 { // This should never happen since we schedule configuration changes only into the future // sessions and this handler called for each session change. log::error!( @@ -1082,7 +1082,7 @@ impl Pallet { "Skipping applying configuration changes scheduled sessions in the past", ); } - if let Some((_, pending)) = past_and_now.last() { + if let Some((_, pending)) = past_and_present.last() { ::ActiveConfig::put(pending); } @@ -1211,7 +1211,7 @@ mod tests { } #[test] - fn consequtive_changes_within_one_session() { + fn consecutive_changes_within_one_session() { new_test_ext(Default::default()).execute_with(|| { let old_config = Configuration::config(); let mut config = old_config.clone();