Skip to content

Commit

Permalink
Adding FailureWatcher for frontend v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-GV committed Sep 28, 2022
1 parent 05ad152 commit 3ccbb58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/lokifrontend/frontend/v1/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func New(cfg Config, limits Limits, log log.Logger, registerer prometheus.Regist
}

func (f *Frontend) starting(ctx context.Context) error {
f.subservicesWatcher = services.NewFailureWatcher()
f.subservicesWatcher.WatchManager(f.subservices)

if err := services.StartManagerAndAwaitHealthy(ctx, f.subservices); err != nil {
Expand Down

0 comments on commit 3ccbb58

Please sign in to comment.