-
-
Notifications
You must be signed in to change notification settings - Fork 291
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 unnecessary I prefix interfaces #5145
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
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 to me, just some minor inconsistency in metric types we might wanna fix, see comment
nice script btw
dbWriteItems: ICounter<"bucket">; | ||
} | ||
export type LevelDbControllerMetrics = { | ||
dbReadReq: Counter<"bucket">; |
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.
There is an inconsistency how metric interfaces outside of the beacon-node are defined. ICounter
is updated to Counter
whereas others such as IHistogram
is not because it is implemented by a class in the beacon-node but not the actual package where it is used.
All the metric types defined in state-transition metrics could remove the I
-prefix. But maybe for consistency should always use interface with I
-prefix for metrics
need to rebase against unstable and re-run script before merging |
- some values were incorrectly updated InboundRateLimitQuota --> nboundRateLimitQuota - few I-prefixed types such as IChainConfig were missed - updated names of types in comments as this was not done by script
77e2204
to
17b6a44
Compare
same, was kinda painful 😂 but load all file diffs was a life saver P.S: should not merge yet, there are few missing changes need to pull in from last commit of #5174 |
🎉 This PR is included in v1.6.0 🎉 |
Motivation
Description
Almost all changes are performed automatically with script below. Non script changes:
Logger
imported from winstonThe script output is