Skip to content

Conversation

@tolikzinovyev
Copy link
Contributor

Summary

Move eval prefetcher to its own package for better isolation. Some other refactoring was necessary.

Test Plan

This is refactoring.

Copy link
Contributor

@tsachiherman tsachiherman left a comment

Choose a reason for hiding this comment

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

I think that the interfaces sub package is an overkill for what you're trying to do.
In the prefetcher, just create a Ledger interface that would contain the entries that you need.
try to make the eval_prefertcher_alignment_test into a prefetcher_test package, so that it could access both the internal as well as the internal/prefetcher.

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2022

Codecov Report

Merging #3735 (b1affa3) into master (6c52126) will increase coverage by 0.03%.
The diff coverage is 51.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3735      +/-   ##
==========================================
+ Coverage   49.65%   49.68%   +0.03%     
==========================================
  Files         392      392              
  Lines       68588    68588              
==========================================
+ Hits        34059    34081      +22     
+ Misses      30781    30769      -12     
+ Partials     3748     3738      -10     
Impacted Files Coverage Δ
ledger/internal/eval.go 66.62% <17.39%> (-0.40%) ⬇️
ledger/internal/prefetcher/prefetcher.go 89.45% <90.00%> (ø)
ledger/internal/cow_creatables.go 51.08% <0.00%> (-1.09%) ⬇️
catchup/peerSelector.go 98.95% <0.00%> (-1.05%) ⬇️
ledger/tracker.go 74.67% <0.00%> (-0.86%) ⬇️
data/transactions/verify/txn.go 45.02% <0.00%> (ø)
network/requestTracker.go 71.55% <0.00%> (+0.43%) ⬆️
ledger/acctupdates.go 69.22% <0.00%> (+0.79%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c52126...b1affa3. Read the comment docs.

@tsachiherman tsachiherman merged commit 9b13756 into algorand:master Mar 9, 2022
jannotti pushed a commit to jannotti/go-algorand that referenced this pull request Mar 13, 2022
## Summary

Move eval prefetcher to its own package for better isolation. Some other refactoring was necessary.

## Test Plan

This is refactoring.
@algojack algojack mentioned this pull request Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants