Skip to content

Commit

Permalink
Remove comment about PROMETHEUS_COMMON_DISABLE_HTTP2 env var because …
Browse files Browse the repository at this point in the history
…it is no longer true

Signed-off-by: Alvin Lin <alvinlin@amazon.com>
  • Loading branch information
alvinlin123 authored and roidelapluie committed Apr 12, 2022
1 parent 840c039 commit 0c7319a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config/http_config.go
Expand Up @@ -409,12 +409,6 @@ func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, optFuncs ...HT
// https://github.com/golang/go/issues/39337
// https://github.com/golang/go/issues/39750

// Do not enable HTTP2 if the environment variable
// PROMETHEUS_COMMON_DISABLE_HTTP2 is set to a non-empty value.
// This allows users to easily disable HTTP2 in case they run into
// issues again, but will be removed once we are confident that
// things work as expected.

http2t, err := http2.ConfigureTransports(rt.(*http.Transport))
if err != nil {
return nil, err
Expand Down

0 comments on commit 0c7319a

Please sign in to comment.