-
Notifications
You must be signed in to change notification settings - Fork 471
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
catchpoint: fix peer ranking #4535
catchpoint: fix peer ranking #4535
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4535 +/- ##
==========================================
+ Coverage 54.06% 54.10% +0.04%
==========================================
Files 401 401
Lines 51540 51547 +7
==========================================
+ Hits 27863 27888 +25
+ Misses 21346 21316 -30
- Partials 2331 2343 +12
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
e78195a
to
5d119fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
Just one more cleanup suggestion.
log: log, | ||
newService: false, | ||
net: net, | ||
ledger: l, | ||
ledger: accessor.Ledger(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are cleaning up this code, will be nice to also get rid of the ledger
field in CatchpointCatchupService
, and rely on ledgerAccessor.Ledger()
instead.
Summary
Test Plan
Added a new unit test.