fix duplicate local variable (#28093)
This commit is contained in:
parent
abfaf06e87
commit
a89010cc89
|
@ -1053,7 +1053,6 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
|
|||
|
||||
// merge all items into the disk index now
|
||||
let disk = self.bucket.as_ref().unwrap();
|
||||
let mut duplicate = vec![];
|
||||
let mut count = 0;
|
||||
insert.into_iter().for_each(|(slot, k, v)| {
|
||||
let entry = (slot, v);
|
||||
|
@ -1066,7 +1065,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
|
|||
slot_list.extend_from_slice(current_slot_list);
|
||||
slot_list.push(entry); // will never be from the same slot that already exists in the list
|
||||
ref_count += new_ref_count;
|
||||
duplicate.push((slot, k));
|
||||
duplicates.push((slot, k));
|
||||
Some((slot_list, ref_count))
|
||||
}
|
||||
None => {
|
||||
|
|
Loading…
Reference in New Issue