Skip to content

Commit

Permalink
remove unused param (#26096)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Jun 21, 2022
1 parent 8dd9a04 commit 7a3dc3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions runtime/src/bucket_map_holder_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ impl BucketMapHolderStats {
}
}

pub fn inc_insert(&self, _bin: usize) {
pub fn inc_insert(&self) {
self.inserts.fetch_add(1, Ordering::Relaxed);
self.count.fetch_add(1, Ordering::Relaxed);
}

pub fn inc_delete(&self, _bin: usize) {
pub fn inc_delete(&self) {
self.deletes.fetch_add(1, Ordering::Relaxed);
self.count.fetch_sub(1, Ordering::Relaxed);
}
Expand Down
8 changes: 4 additions & 4 deletions runtime/src/in_mem_accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {

fn remove_if_slot_list_empty_value(&self, slot_list: SlotSlice<T>) -> bool {
if slot_list.is_empty() {
self.stats().inc_delete(self.bin);
self.stats().inc_delete();
true
} else {
false
Expand Down Expand Up @@ -417,7 +417,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
previous_slot_entry_was_cached,
);
if !already_existed {
self.stats().inc_insert(self.bin);
self.stats().inc_insert();
}
} else {
// go to in-mem cache first
Expand All @@ -434,7 +434,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
disk_entry
} else {
// not on disk, so insert new thing
self.stats().inc_insert(self.bin);
self.stats().inc_insert();
new_value.into_account_map_entry(&self.storage)
};
assert!(new_value.dirty());
Expand Down Expand Up @@ -676,7 +676,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
self.update_entry_stats(m, found_in_mem);
let stats = self.stats();
if !already_existed {
stats.inc_insert(self.bin);
stats.inc_insert();
} else {
Self::update_stat(&stats.updates_in_mem, 1);
}
Expand Down

0 comments on commit 7a3dc3a

Please sign in to comment.