Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 02feb73

Browse files
fix duplicate local variable (backport #28093) (#28108)
fix duplicate local variable (#28093) (cherry picked from commit a89010c) Co-authored-by: Jeff Washington (jwash) <[email protected]>
1 parent 4d7f20b commit 02feb73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/src/in_mem_accounts_index.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,6 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
11121112

11131113
// merge all items into the disk index now
11141114
let disk = self.bucket.as_ref().unwrap();
1115-
let mut duplicate = vec![];
11161115
let mut count = 0;
11171116
insert.into_iter().for_each(|(slot, k, v)| {
11181117
let entry = (slot, v);
@@ -1125,7 +1124,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
11251124
slot_list.extend_from_slice(current_slot_list);
11261125
slot_list.push(entry); // will never be from the same slot that already exists in the list
11271126
ref_count += new_ref_count;
1128-
duplicate.push((slot, k));
1127+
duplicates.push((slot, k));
11291128
Some((slot_list, ref_count))
11301129
}
11311130
None => {

0 commit comments

Comments
 (0)