Skip to content

Commit

Permalink
replaces fallthrough statement in InitFrontend (#4589)
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-d authored Oct 29, 2021
1 parent a0b7b3d commit 1ef1ff0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/lokifrontend/frontend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ func InitFrontend(cfg CombinedFrontendConfig, ring ring.ReadRing, limits v1.Limi
// If the user has specified a downstream Prometheus, then we should use that.
rt, err := NewDownstreamRoundTripper(cfg.DownstreamURL, http.DefaultTransport)
return rt, nil, nil, err
case ring != nil:
fallthrough
case cfg.FrontendV2.SchedulerAddress != "":
case cfg.FrontendV2.SchedulerAddress != "" || ring != nil:
// If query-scheduler address is configured, use Frontend.
if cfg.FrontendV2.Addr == "" {
addr, err := util.GetFirstAddressOf(cfg.FrontendV2.InfNames)
Expand Down

0 comments on commit 1ef1ff0

Please sign in to comment.