Skip to content

Conversation

@maradini77
Copy link
Contributor

Summary

  • replace time.Tick with a scoped time.NewTicker in LogScaled
  • ensure metric logging releases its timer resources when the loop exits

duSuffix := scale.String()[1:]

for range time.Tick(freq) {
ticker := time.NewTicker(freq)
Copy link
Member

Choose a reason for hiding this comment

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

// The Stop method is no longer necessary to help the garbage collector.
// There is no longer any reason to prefer NewTicker when Tick will do.

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