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

fix: add tracked map #1069

Merged
merged 3 commits into from
Dec 21, 2021
Merged

fix: add tracked map #1069

merged 3 commits into from
Dec 21, 2021

Conversation

achingbrain
Copy link
Member

Small refactor of the component stats - adds a TrackedMap which encapsulates updating the metrics and means we don't need to null guard on this._metrics everywhere.

If metrics are not enabled a regular Map is used.

Small refactor of the component stats - adds a `TrackedMap` which encapsulates
updating the metrics and means we don't need to null guard on `this._metrics`
everywhere.
@achingbrain achingbrain requested review from vasco-santos and jacobheun and removed request for vasco-santos December 21, 2021 08:08
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

Nice 💯

@achingbrain achingbrain merged commit b425fa1 into master Dec 21, 2021
@achingbrain achingbrain deleted the fix/add-tracked-map branch December 21, 2021 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants