Skip to content

Commit 0c7319a

Browse files
alvinlin123roidelapluie
authored andcommitted
Remove comment about PROMETHEUS_COMMON_DISABLE_HTTP2 env var because it is no longer true
Signed-off-by: Alvin Lin <[email protected]>
1 parent 840c039 commit 0c7319a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

config/http_config.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,6 @@ func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, optFuncs ...HT
409409
// https://github.com/golang/go/issues/39337
410410
// https://github.com/golang/go/issues/39750
411411

412-
// Do not enable HTTP2 if the environment variable
413-
// PROMETHEUS_COMMON_DISABLE_HTTP2 is set to a non-empty value.
414-
// This allows users to easily disable HTTP2 in case they run into
415-
// issues again, but will be removed once we are confident that
416-
// things work as expected.
417-
418412
http2t, err := http2.ConfigureTransports(rt.(*http.Transport))
419413
if err != nil {
420414
return nil, err

0 commit comments

Comments
 (0)