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
After this operation, the timer will not leak before the function exits. Especially before the service exits smoothly, it is recommended to clean up the timer here.
fix it like this:
tick := time.NewTicker(defaultSendPeriod)
defer tick.Stop()
The text was updated successfully, but these errors were encountered:
https://github.com/daheige/statsviz/blob/master/statsviz.go#L87
After this operation, the timer will not leak before the function exits. Especially before the service exits smoothly, it is recommended to clean up the timer here.
fix it like this:
tick := time.NewTicker(defaultSendPeriod)
defer tick.Stop()
The text was updated successfully, but these errors were encountered: