-
Notifications
You must be signed in to change notification settings - Fork 32
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
remove unused scribe config params #1383
Conversation
@nautsimon if neither of these two params are in use how often do we hit the latest block? |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1383 +/- ##
===================================================
+ Coverage 50.88921% 50.94929% +0.06007%
===================================================
Files 353 353
Lines 24966 24966
Branches 277 277
===================================================
+ Hits 12705 12720 +15
+ Misses 10981 10971 -10
+ Partials 1280 1275 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
One of the changes to scribe was to set refresh rates at a contract level rather at a chain level. Refresh rate is an optional param that can be set for each contract, but will default to 1 second if not provided. Once contracts are near head they are lumped into the big get logs query for multiple contracts and assume a 1 second refresh rate regardless of the set param. |
WalkthroughThe changes primarily revolve around the removal of Changes
TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 0
Files selected for processing (3)
- services/scribe/config/config.go (1 hunks)
- services/scribe/config/config_test.go (1 hunks)
- services/scribe/service/scribe_test.go (1 hunks)
Files skipped from review due to trivial changes (2)
- services/scribe/config/config_test.go
- services/scribe/service/scribe_test.go
Additional comments (Suppressed): 1
services/scribe/config/config.go (1)
- 14-19: The
RefreshRate
andConfirmationRefreshRate
fields have been removed from theConfig
struct. Ensure that all parts of the codebase that previously accessed these fields have been updated to handle their absence.
Description
Remove two global scribe params that appear to be unused found when working on #1381
Summary by CodeRabbit
RefreshRate
andConfirmationRefreshRate
fields from theConfig
struct inservices/scribe/config/config.go
. This change simplifies the configuration by eliminating unused refresh rates for updating block heights.services/scribe/config/config_test.go
andservices/scribe/service/scribe_test.go
to reflect the removal of theRefreshRate
field. These changes ensure that our tests remain accurate and reliable after the refactor.