Skip to content

Commit

Permalink
query-frontend: inline function header
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Fordyce <neil.fordyce@skyscanner.net>
  • Loading branch information
neilfordyce committed Nov 10, 2020
1 parent e8e592e commit 35dae03
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/thanos/query_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,7 @@ func runQueryFrontend(
return nil
}

func extractOrgId(
conf *queryFrontendConfig,
r *http.Request,
) string {
func extractOrgId(conf *queryFrontendConfig, r *http.Request) string {
for _, header := range conf.orgIdHeaders {
headerVal := r.Header.Get(header)
if headerVal != "" {
Expand Down

0 comments on commit 35dae03

Please sign in to comment.