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

Use VoteAccountsHashMap type alias in all applicable spots #23904

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Mar 24, 2022

Problem

I was poking around a little from #23692 (and issue it aims to address) and found it inconvenient to find all instances HashMap<Pubkey, (/*stake:*/ u64, VoteAccount)>, given that some used VoteAccountsHashMap type alias, as well as there being a mix of including/excluding the /*stake:*/ comment.

Summary of Changes

Use VoteAccountsHashMap type alias everywhere and appease clippy - no functional changes

@steviez steviez marked this pull request as ready for review March 24, 2022 06:26
@steviez steviez requested a review from behzadnouri March 24, 2022 06:26
@steviez
Copy link
Contributor Author

steviez commented Mar 24, 2022

@behzadnouri - This would definitely create a merge conflict for your immutable HashMap change. That being said, this would lower the noise in that diff a little (always good for more meaningful changes). And, if we end up discarding that change, this cleanup with be good to have anyways.

Copy link
Contributor

@behzadnouri behzadnouri left a comment

Choose a reason for hiding this comment

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

lgtm

@steviez steviez merged commit c31db81 into solana-labs:master Mar 24, 2022
@steviez steviez deleted the vote_account_hash_map branch March 24, 2022 17:09
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