Skip to content

Commit

Permalink
Merge pull request #63 from grafana/56quarters/ticker-not-timer
Browse files Browse the repository at this point in the history
Use ticker instead of timer introduced in #62
  • Loading branch information
Tyler Reid committed Oct 13, 2021
2 parents 8769f1b + 43f30c0 commit 951b97c
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 951b97c

Please sign in to comment.