My Go lesson of the day: beware of time.Tick, and never call it in a loop. You’ll leak timers and your CPU usage will grow over time for reasons you don’t understand. Use time.NewTicker instead and remember to stop it!
My Go lesson of the day: beware of time.Tick, and never call it in a loop. You’ll leak timers and your CPU usage will grow over time for reasons you don’t understand. Use time.NewTicker instead and remember to stop it!