Skip to content

Commit

Permalink
query-frontend: inline function header
Browse files Browse the repository at this point in the history
  • Loading branch information
neilfordyce committed Nov 10, 2020
1 parent e8e592e commit a3dd82f
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 a3dd82f

Please sign in to comment.