Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes unnecessary AccountsDb::new_with_config_for_benches() #34484

Conversation

brooksprumo
Copy link
Contributor

Problem

There are too many AccountsDb constructors. AccountsDb::new_with_config_for_benches() is unnecessary. The current callers can new AccountsDb::new_with_config() instead.

Summary of Changes

Remove AccountsDb::new_with_config_for_benches() and update callers.

@brooksprumo brooksprumo self-assigned this Dec 15, 2023
@brooksprumo brooksprumo marked this pull request as ready for review December 15, 2023 17:51
Copy link

codecov bot commented Dec 15, 2023

Codecov Report

Merging #34484 (3ce189f) into master (cbe8a02) will decrease coverage by 0.1%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34484     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         820      820             
  Lines      220799   220790      -9     
=========================================
- Hits       180706   180653     -53     
- Misses      40093    40137     +44     

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Just the one comment about cluster-type which I think we can lump in with this one; if you'd rather not re-run CI, I'm probably fine with that too

accounts-bench/src/main.rs Show resolved Hide resolved
steviez
steviez previously approved these changes Dec 18, 2023
@brooksprumo brooksprumo force-pushed the accounts/ctor-refactor/accounts_db_new_with_config_for_benches-on-master branch from 4e014ec to 3ce189f Compare December 18, 2023 06:02
@brooksprumo
Copy link
Contributor Author

Ah bummer, I needed to resolve conflicts (likely because I merged #34485 first), so I've force-pushed those changes. Nothing within the PR has changed though.

@brooksprumo brooksprumo added the automerge Merge this Pull Request automatically once CI passes label Dec 18, 2023
@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Dec 18, 2023
Copy link
Contributor

mergify bot commented Dec 18, 2023

automerge label removed due to a CI failure

@brooksprumo brooksprumo merged commit 4181ea4 into solana-labs:master Dec 18, 2023
36 checks passed
@brooksprumo brooksprumo deleted the accounts/ctor-refactor/accounts_db_new_with_config_for_benches-on-master branch December 18, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants