From a8b6ec0b6681321f423755e9a878ea3b0d205415 Mon Sep 17 00:00:00 2001 From: Joshua Oladele Date: Tue, 28 Nov 2023 08:33:48 +0100 Subject: [PATCH] Fix variable name leak --- chaindexing/src/contract_states/state_views.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaindexing/src/contract_states/state_views.rs b/chaindexing/src/contract_states/state_views.rs index e64feb8..90bbb88 100644 --- a/chaindexing/src/contract_states/state_views.rs +++ b/chaindexing/src/contract_states/state_views.rs @@ -16,10 +16,10 @@ impl StateViews { table_name: &str, client: &ChaindexingRepoRawQueryTxnClient<'a>, ) { - let backtracked_state_versions = + let latest_state_versions = StateVersions::get_latest(&state_version_group_ids, table_name, client).await; - for latest_state_version in backtracked_state_versions { + for latest_state_version in latest_state_versions { StateView::refresh(&latest_state_version, table_name, client).await } }