Skip to content

Commit f591e3b

Browse files
authored
codec: remove option to suppress setting supported compressors in headers (#7203)
1 parent b4f7947 commit f591e3b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

internal/envconfig/envconfig.go

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ import (
2828
var (
2929
// TXTErrIgnore is set if TXT errors should be ignored ("GRPC_GO_IGNORE_TXT_ERRORS" is not "false").
3030
TXTErrIgnore = boolFromEnv("GRPC_GO_IGNORE_TXT_ERRORS", true)
31-
// AdvertiseCompressors is set if registered compressor should be advertised
32-
// ("GRPC_GO_ADVERTISE_COMPRESSORS" is not "false").
33-
AdvertiseCompressors = boolFromEnv("GRPC_GO_ADVERTISE_COMPRESSORS", true)
3431
// RingHashCap indicates the maximum ring size which defaults to 4096
3532
// entries but may be overridden by setting the environment variable
3633
// "GRPC_RING_HASH_CAP". This does not override the default bounds

internal/grpcutil/compressor.go

-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ package grpcutil
2020

2121
import (
2222
"strings"
23-
24-
"google.golang.org/grpc/internal/envconfig"
2523
)
2624

2725
// RegisteredCompressorNames holds names of the registered compressors.
@@ -40,8 +38,5 @@ func IsCompressorNameRegistered(name string) bool {
4038
// RegisteredCompressors returns a string of registered compressor names
4139
// separated by comma.
4240
func RegisteredCompressors() string {
43-
if !envconfig.AdvertiseCompressors {
44-
return ""
45-
}
4641
return strings.Join(RegisteredCompressorNames, ",")
4742
}

0 commit comments

Comments
 (0)