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

chore(sync)!: Rename unrecentHead to outdatedHead in metrics + clean up Head func a bit #163

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Mar 7, 2024

This PR renames a poorly named metric from unrecent_header to outdated_head which is more descriptive / accurate.

It also cleans up a bit of the code inside of sync_head.go.

This PR is meant to override #162 if we agree that the timeout should not be configurable (see comment

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 54.54545% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 62.85%. Comparing base (cb11d8c) to head (ce20115).

Files Patch % Lines
sync/metrics.go 16.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
- Coverage   62.90%   62.85%   -0.05%     
==========================================
  Files          39       39              
  Lines        3577     3578       +1     
==========================================
- Hits         2250     2249       -1     
- Misses       1154     1156       +2     
  Partials      173      173              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

vgonkivs
vgonkivs previously approved these changes Mar 7, 2024
sync/sync_head.go Show resolved Hide resolved
sync/sync_head.go Outdated Show resolved Hide resolved
sync/metrics.go Show resolved Hide resolved
@Wondertan Wondertan merged commit b9fa9aa into celestiaorg:main Mar 14, 2024
2 checks passed
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.

None yet

4 participants