Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Use HTTP server for request from query frontend.
Browse files Browse the repository at this point in the history
Fixes cortexproject#949.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
  • Loading branch information
tomwilkie committed Aug 23, 2018
1 parent dea2b8d commit 8c0a01e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/querier/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func main() {
}
defer chunkStore.Stop()

// TODO this avoids our middleware for logging and latecy collection.
worker, err := frontend.NewWorker(workerConfig, httpgrpc_server.NewServer(server.HTTP), util.Logger)
worker, err := frontend.NewWorker(workerConfig, httpgrpc_server.NewServer(server.HTTPServer.Handler), util.Logger)
if err != nil {
level.Error(util.Logger).Log("err", err)
os.Exit(1)
Expand Down

0 comments on commit 8c0a01e

Please sign in to comment.