You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(timer): replace raw strings by timer.Key for futur use (#121)
Introduction a new `timer.Key` type to better distinguish timer keys from the rest
Also remove a useless condition on `timer.NewNode` that will make testing the new API easier
Copy file name to clipboardExpand all lines: timer/base_timer.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ type baseTimer struct {
26
26
parentNodeTimer
27
27
28
28
// componentName is the name of the component of the timer. It is used to store the time spent in the component and to propagate the stop of the timer to the parent timer.
29
-
componentNamestring
29
+
componentNameKey
30
30
31
31
// spent is the time spent on the timer, set after calling stop
0 commit comments