Skip to content

Commit

Permalink
Use ticker instead of timer introduced in #62
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
  • Loading branch information
56quarters committed Oct 13, 2021
1 parent 8769f1b commit 43f30c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ring/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (r *Ring) starting(ctx context.Context) error {
r.metricsUpdateCloser = make(chan struct{})
go func() {
// Start metrics update ticker to update the ring metrics.
ticker := time.NewTimer(10 * time.Second)
ticker := time.NewTicker(10 * time.Second)
defer ticker.Stop()

for {
Expand Down

0 comments on commit 43f30c0

Please sign in to comment.