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

flush_slot_cache_with_clean() takes a single Slot #33413

Conversation

brooksprumo
Copy link
Contributor

Problem

AccountsDb::flush_slot_cache_with_clean() takes a slice of Slots, even though we assert that we're only allowed to pass a single slot. All callers of this function pass a single element slice already, so the function parameter can be updated safely.

Summary of Changes

Replace the slice of Slots with a Slot for the function parameter.

@brooksprumo brooksprumo self-assigned this Sep 26, 2023
@brooksprumo brooksprumo marked this pull request as ready for review September 26, 2023 18:27
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #33413 (a06563a) into master (997aa0a) will increase coverage by 0.0%.
Report is 22 commits behind head on master.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #33413   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         798      798           
  Lines      216579   216575    -4     
=======================================
  Hits       177481   177481           
+ Misses      39098    39094    -4     

Copy link
Contributor

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo brooksprumo merged commit 9f6f532 into solana-labs:master Sep 26, 2023
15 checks passed
@brooksprumo brooksprumo deleted the flush/flush_slot_cache_with_clean/slots branch September 26, 2023 19:38
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