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

Replaces bare Arc::default() in CacheHashData::new() #35017

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

brooksprumo
Copy link
Contributor

Problem

I was grepping for all the places where CacheHashDataStats was created and couldn't find it. Turns out it's because a plain Arc::default() will call Default::default() on its inner T.

Summary of Changes

Instantiate the CacheHashDataStats explicitly

@brooksprumo brooksprumo self-assigned this Jan 30, 2024
@brooksprumo brooksprumo marked this pull request as ready for review January 30, 2024 22:13
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c6c2340) 81.6% compared to head (94e735f) 81.6%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #35017   +/-   ##
=======================================
  Coverage    81.6%    81.6%           
=======================================
  Files         830      830           
  Lines      224837   224837           
=======================================
+ Hits       183505   183546   +41     
+ Misses      41332    41291   -41     

@brooksprumo brooksprumo requested a review from HaoranYi January 31, 2024 02:00
Copy link
Contributor

@HaoranYi HaoranYi 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 0569304 into solana-labs:master Jan 31, 2024
35 checks passed
@brooksprumo brooksprumo deleted the hash-cache/new branch January 31, 2024 15:53
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