-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: metrics initialization changes
Instead of initializing the metrics structure and working with it directly, I decided to create the metrics interface with two main implementations. First one is realMetrics that would be working only if metrics enabled and gathers metrics information. And another one is noMetrics, which is dummy implemenation and does nothing serious. The refactoring is being made with the goal of removing checking for nil variable constantly.
- Loading branch information
1 parent
3e72185
commit 146cc30
Showing
3 changed files
with
80 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters