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

Remove MetricsRegistryTrait and use just struct MetricsRegistry #4470

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

neysofu
Copy link
Member

@neysofu neysofu commented Mar 17, 2023

Fixes #4438. See also #4443, which recently touched on some of this code.

It's all in one big commit, apologies, as I didn't know how to best break it up into smaller pieces. The only changes are pretty much:

  • Delete MetricsRegistryTrait and add its default method implementations to MetricsRegistry.
  • Change a bunch of imports.

@neysofu neysofu force-pushed the filippo/rm-metrics-registry-trait branch from c2c5560 to 054347b Compare March 17, 2023 15:02
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

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

Nice! One less trait we don't need, and I had totally forgotten how awkward the split between the trait and the impl was.

@neysofu neysofu force-pushed the filippo/rm-metrics-registry-trait branch from 054347b to 5ec722f Compare March 20, 2023 10:12
@neysofu neysofu merged commit 1b0031a into master Mar 20, 2023
@neysofu neysofu deleted the filippo/rm-metrics-registry-trait branch March 20, 2023 11:20
gusinacio pushed a commit to gusinacio/graph-node that referenced this pull request Mar 21, 2023
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.

Remove the MetricsRegistry trait and directly reference the struct everywhere
2 participants