mirror of
https://github.com/coder/coder.git
synced 2026-06-04 21:48:22 +00:00
e4e4669feb
Closes https://github.com/coder/internal/issues/769 According to the `time.NewTicker` documentation [^1] (which is used under the hood by https://github.com/coder/quartz) it will automatically adjust the time interval to make up for slow receivers. This means we should be safe to drop the default branch. > NewTicker returns a new Ticker containing a channel that will send the current time on the channel after each tick. The period of the ticks is specified by the duration argument. The ticker will adjust the time interval or drop ticks to make up for slow receivers. The duration d must be greater than zero; if not, NewTicker will panic. [^1]: https://pkg.go.dev/time#Ticker